Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Maildir empty?



On Mon, Jul 12, 2004 at 11:00:34AM +0100, Peter Stephenson wrote:
> Klaus Wacker wrote:
> > Dear zsh, is there a zsh-internal way to find out whether a maildir is
> > empty? Or more generally, whether a directory tree contains no
> > files?
> 
> This will be fixed in 4.2.1 with the syntax `*(/^F)'.  (F) (for full)
> indicates a directory with files.  (^F) indcates either not a directory
> or no files.  (/^F) indicates a directory with no files.

Will this work recursively for subdirectories? A maildir directory is
never empty, it always contains 3 subdirectories. What I need to find
out is whether all those are empty.

-- 
Klaus Wacker              wacker@xxxxxxxxxxxxxxxxxxxxxx
Experimentelle Physik V   http://www.physik.uni-dortmund.de/~wacker
Universitaet Dortmund     Tel.: +49 231 755 3587
D-44221 Dortmund          Fax:  +49 231 755 4547



Messages sorted by: Reverse Date, Date, Thread, Author