Commit 37f7c843 by rfkelly0

OSFS.unsyspath: work correctly for root of drive

parent da93b4d9
......@@ -163,6 +163,8 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
"""
path = os.path.normpath(os.path.abspath(path))
path = self._decode_path(path)
if len(path) == 6 and not path.endswith("\\"):
path = path + "\\"
prefix = os.path.normcase(self.root_path)
if not prefix.endswith(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