|
From: | Stefan Monnier |
Subject: | Re: Can't interrupt directory_files_internal run from timer-event-handler |
Date: | Tue, 09 Aug 2005 19:15:12 -0400 |
User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) |
> There's no need to run any program just to know if a directory is > empty. Emacs has primitives which will tell that directly (e.g., > file-attributes) and do that faster. If directory-files blocks (on a failed NFS server), file-attributes is pretty likely to block just as well, in which case `ls' may be a good way to do the equivalent of running directory-files asynchronously. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |