Commit 484c451e by rfkelly0

bugfix for OSFS.listdir on win32

parent 266e2aaa
...@@ -39,7 +39,7 @@ class OSFS(FS): ...@@ -39,7 +39,7 @@ class OSFS(FS):
return "<OSFS: %s>" % self.root_path return "<OSFS: %s>" % self.root_path
def getsyspath(self, path, allow_none=False): def getsyspath(self, path, allow_none=False):
path = relpath(path).replace('/', os.sep) path = relpath(normpath(path)).replace("/",os.sep)
return os.path.join(self.root_path, path) return os.path.join(self.root_path, path)
@convert_os_errors @convert_os_errors
......
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