Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Globbing for Empty Directories?
- X-seq: zsh-users 7283
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Globbing for Empty Directories?
- Date: Sun, 28 Mar 2004 20:55:12 +0000
- In-reply-to: <4F9C0127-80F4-11D8-AA68-000502631FBD@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4F9C0127-80F4-11D8-AA68-000502631FBD@xxxxxxxxxxxxxx>
On Mar 28, 3:13pm, Aaron Davies wrote:
} Subject: Re: Globbing for Empty Directories?
}
} On Sunday, March 28, 2004, at 02:21 PM, Bart Schaefer wrote:
}
} > It's not possible to tell if a directory is empty without actually
} > looking for files in it.
}
} Thanks much. In that case, could I make this a feature request?
What I meant was, the filesystem typically doesn't provide any way to
discover whether a directory is empty without looking for files in it.
So even if zsh implemented an "empty directory" globbing flag internally,
it'd be doing effectively the same thing as the function I showed. And
that must be what "find ... -empty" is doing as well.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author