Commit b8b5c62a by rfkelly0

OSFS: decode to unicode in unsyspath()

parent 9f78bed1
...@@ -138,6 +138,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS): ...@@ -138,6 +138,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
""" """
path = os.path.normpath(os.path.abspath(path)) path = os.path.normpath(os.path.abspath(path))
path = self._decode_path(path)
prefix = os.path.normcase(self.root_path) prefix = os.path.normcase(self.root_path)
if not prefix.endswith(os.path.sep): if not prefix.endswith(os.path.sep):
prefix += os.path.sep prefix += os.path.sep
......
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