bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [patch] glob. If pattern has a trailing slash match directories only


From: Dmitry Goncharov
Subject: Re: [patch] glob. If pattern has a trailing slash match directories only
Date: Tue, 12 Nov 2019 20:44:39 -0500

Good morning.


On Sun, Nov 10, 2019 at 6:15 PM Paul Eggert <address@hidden> wrote:
> It seems to me that the performance issues are still there, in the sense that 
> if
> GLOB_ONLYDIR is set then 'glob' now does a stat call on each directory entry 
> to
> see whether it's a directory.

The idea is that this patch relieves the program from having to call
stat and the total number of stats stays the same.
However, since you don't like the idea here is a patch that only fixes
trailing slash.

regards, Dmitry

Attachment: match_slash_explicitly4.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]