Closed potrebic closed 9 years ago
OSFS.unsyspath seems to special case paths that are 6 chars long (some Windows thing?), But that logic seems to mess up paths on Macs. For example:
from fs.OSFS import OSFS fs = OSFS('/') fs.unsyspath(fs.getsyspath('abcde')) u'abcde\'
The original 'abcde' was corrupted to 'abcde\'
I think I can fix that by checking for the platform.
pushed a quick fix
OSFS.unsyspath seems to special case paths that are 6 chars long (some Windows thing?), But that logic seems to mess up paths on Macs. For example:
The original 'abcde' was corrupted to 'abcde\'