zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: PATCH: Re: Globbing for Empty Directories?
Date: Tue, 06 Apr 2004 18:41:11 +0100	[thread overview]
Message-ID: <27174.1081273271@csr.com> (raw)
In-Reply-To: "Wayne Davison"'s message of "Tue, 06 Apr 2004 10:27:58 PDT." <20040406172758.GB10632@blorf.net>

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
**********************************************************************


  reply	other threads:[~2004-04-06 17:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9E7AF602-8085-11D8-AA68-000502631FBD@louisville.edu>
2004-04-01 18:43 ` Peter Stephenson
2004-04-01 19:26   ` DervishD
2004-04-01 22:49   ` Geoff Wing
2004-04-02  2:02     ` Geoff Wing
2004-04-06 17:27   ` Wayne Davison
2004-04-06 17:41     ` Peter Stephenson [this message]
2004-04-06 17:55   ` Wayne Davison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27174.1081273271@csr.com \
    --to=pws@csr.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).