Commit 84a74595 authored by Guido van Rossum's avatar Guido van Rossum

Patch by Gerrit Holl to avoid doing two stat() calls in a row in walk().

parent 0ba33002
......@@ -267,7 +267,8 @@ of all the files and subdirs in directory "d".
for name in names:
if name not in exceptions:
name = join(top, name)
if isdir(name) and not islink(name):
st = os.lstat(name)
if stat.S_ISDIR(st[stat.ST_MODE]):
walk(name, func, arg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment