We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d9440e commit 24ce239Copy full SHA for 24ce239
1 file changed
fs/osfs/__init__.py
@@ -182,10 +182,12 @@ def unsyspath(self, path):
182
:rtype: string
183
184
"""
185
+ # TODO: HAve a closer look at this method
186
path = os.path.normpath(os.path.abspath(path))
187
path = self._decode_path(path)
- if len(path) == 6 and not path.endswith("\\"):
188
- path = path + "\\"
+ if sys.platform == "win32":
189
+ if len(path) == 6 and not path.endswith("\\"):
190
+ path = path + "\\"
191
prefix = os.path.normcase(self.root_path)
192
if not prefix.endswith(os.path.sep):
193
prefix += os.path.sep
0 commit comments