Commit eac17257 by willmcgugan@gmail.com

Changed detection of Windows for invalid_path_chars string

parent 098ac18c
...@@ -87,7 +87,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS): ...@@ -87,7 +87,7 @@ class OSFS(OSFSXAttrMixin, OSFSWatchMixin, FS):
'atomic.setcontents' : False, 'atomic.setcontents' : False,
} }
if sys.platform == 'win32': if platform.system() == 'Windows':
_invalid_path_chars = ''.join(chr(n) for n in xrange(31)) + '\\:*?"<>|' _invalid_path_chars = ''.join(chr(n) for n in xrange(31)) + '\\:*?"<>|'
else: else:
_invalid_path_chars = '\0' _invalid_path_chars = '\0'
......
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