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:
Durham Goode 2019-10-10 12:52:43 -07:00 committed by Facebook Github Bot
parent 6ea194865f
commit 679e4b6fe2

View File

@ -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.