Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: Globbing for Empty Directories?
- X-seq: zsh-workers 19742
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: Re: Globbing for Empty Directories?
- Date: Tue, 06 Apr 2004 18:41:11 +0100
- In-reply-to: "Wayne Davison"'s message of "Tue, 06 Apr 2004 10:27:58 PDT." <20040406172758.GB10632@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Wayne Davison wrote:
> Here's a minor optimization for this function. It avoids reading the
> directory if the st_nlink count is greater than 2 (since this must mean
> that it has subdirs, and hence is not empty). I decided to move the
> opendir() call down below this nlink test, so I had to pre-qualify the
> name using S_ISDIR().
Looks OK to me.
pws
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author