diff options
author | Will McGugan <willmcgugan@gmail.com> | 2015-11-13 22:18:37 +0000 |
---|---|---|
committer | Will McGugan <willmcgugan@gmail.com> | 2015-11-13 22:18:37 +0000 |
commit | 1b4450e34378e4f648087755070a46dd02a5a677 (patch) | |
tree | 08bebba4f947172f836321cf10b63a9d231873fc /fs | |
parent | 39f673de2671acb8146b1975cbaa285d340ac9a0 (diff) | |
parent | 24ce239980ea881d41cebf8374fd5a68b3701fef (diff) | |
download | pyfilesystem-git-1b4450e34378e4f648087755070a46dd02a5a677.tar.gz |
Merge branch 'master' of github.com:PyFilesystem/pyfilesystem
Diffstat (limited to 'fs')
-rw-r--r-- | fs/osfs/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/osfs/__init__.py b/fs/osfs/__init__.py index 90f4360..9226b08 100644 --- a/fs/osfs/__init__.py +++ b/fs/osfs/__init__.py @@ -182,10 +182,12 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS): :rtype: string """ + # TODO: HAve a closer look at this method path = os.path.normpath(os.path.abspath(path)) path = self._decode_path(path) - if len(path) == 6 and not path.endswith("\\"): - path = path + "\\" + if sys.platform == "win32": + 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 |