mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
filesystem: fix windows
Summary: A previous diff added util.statfiles calls, but assumed the return value was a list. On Windows that is not the case, so let's turn it into a list manually. Reviewed By: xavierd Differential Revision: D17862000 fbshipit-source-id: ccb96d90ea29b97d02da60ce0a25e4192316b45d
This commit is contained in:
parent
6ea194865f
commit
679e4b6fe2
@ -164,7 +164,7 @@ class physicalfilesystem(object):
|
||||
# We might not've seen a path because it's in a directory that's
|
||||
# ignored and the walk didn't go down that path. So let's double
|
||||
# check for the existence of that file.
|
||||
st = util.statfiles([self.opener.join(fn)])[0]
|
||||
st = list(util.statfiles([self.opener.join(fn)]))[0]
|
||||
|
||||
# auditpath checks to see if the file is under a symlink directory.
|
||||
# If it is, we treat it the same as if it didn't exist.
|
||||
|
Loading…
Reference in New Issue
Block a user