[Python-ideas] BetterWalk, a better and faster os.walk() for Python
p.f.moore at gmail.com
Thu Nov 29 23:59:14 CET 2012
On 29 November 2012 20:10, Ben Hoyt <benhoyt at gmail.com> wrote:
> So you're proposing that the "pattern" argument is passed directly to
> FindFirstFile as the wildcard on Windows, and to Python's fnmatch on
> Linux? That's not terrible, but there is the "my program deleted files
> it shouldn't have" problem for edge cases.
> Isn't fnmatch's behaviour quite well defined? I think if it's not too
> difficult it'd be better to mimic that (emulating "bad patterns" using
> fnmatch where necessary on Windows).
Personally, I would far prefer cross-platform consistency. The fnmatch
behaviour is both better defined and more useful than the Windows behaviour.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas