mirror of
https://github.com/facebook/sapling.git
synced 2024-10-15 19:29:13 +03:00
windows: correctly pass a mode to S_IFMT in statfiles
This commit is contained in:
parent
e9b46fad5b
commit
2e6f376926
@ -232,7 +232,7 @@ def statfiles(files):
|
||||
try:
|
||||
dmap = dict([(normcase(n), s)
|
||||
for n, k, s in osutil.listdir(dir, True)
|
||||
if getkind(s) in _wantedkinds])
|
||||
if getkind(s.st_mode) in _wantedkinds])
|
||||
except OSError, err:
|
||||
# handle directory not found in Python version prior to 2.5
|
||||
# Python <= 2.4 returns native Windows code 3 in errno
|
||||
|
Loading…
Reference in New Issue
Block a user