Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Maildir empty?
- X-seq: zsh-users 7682
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Klaus Wacker <wacker@xxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Maildir empty?
- Date: Mon, 12 Jul 2004 11:43:24 +0200
- Cc: ZSH User List <zsh-users@xxxxxxxxxx>
- In-reply-to: <20040712073705.GN2860@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Klaus Wacker <wacker@xxxxxxxxxxxxxxxxxxxxxx>, ZSH User List <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <20040712073705.GN2860@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Hi Klaus :)
* Klaus Wacker <wacker@xxxxxxxxxxxxxxxxxxxxxx> dixit:
> 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?
There is not any zsh-internal way to test whether a directory is
empty, you must use 'find' or the small shell function that Bart had
the kindness to give me when I needed the same as you.
Look in the mailing list archives. I currently don't have that
function since the project I needed it for is 'sleeping'. IIRC, that
function didn't need any external program.
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author