Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Globbing for Empty Directories?
- X-seq: zsh-users 7305
- From: DervishD <raul@xxxxxxxxxxxx>
- To: Aaron Davies <agdavi01@xxxxxxxxxxxxxx>
- Subject: Re: Globbing for Empty Directories?
- Date: Wed, 31 Mar 2004 10:44:05 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <F190FDEE-82B4-11D8-913F-000502631FBD@xxxxxxxxxxxxxx>
- Mail-followup-to: Aaron Davies <agdavi01@xxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: Pleyades
- References: <20040329232435.GA8304@DervishD> <F190FDEE-82B4-11D8-913F-000502631FBD@xxxxxxxxxxxxxx>
Hi Aaron :)
* Aaron Davies <agdavi01@xxxxxxxxxxxxxx> dixit:
> >>I'm on OS X, so it may be a peculiarity of HFS+.
> > Do you mean you can know if a dir is empty or not in OS X looking
> >for the number of st_nlinks it has? I must confess I don't know a
> >workd about HFS+ O:)
> On cursory examination, it would appear so. I haven't done any serious
> testing (or looked at any docs), but the number of links listed in ls
> -l for a directory seems to equal the number of files in it plus two.
Well, that seems an exception. I'll try to search the Internet
for seeing current practice. The fact that 'find' uses directory
contents and not the number of links is interesting, though.
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