PyFilesystem / pyfilesystem

Python filesystem abstraction layer
http://pyfilesystem.org/
BSD 3-Clause "New" or "Revised" License
287 stars 63 forks source link

Fix for long UNC paths using opener.parse #252

Open robmcmullen opened 8 years ago

robmcmullen commented 8 years ago

I'm not sure if this is the correct fix, but it's at least a workaround for long UNC paths. This code:

uri = r'\\?\UNC\VBOXSVR\work\stuff.xex'
fs, relpath = opener.parse(uri)
print relpath

was producing \?\N:\src\omnivore\UNC\VBOXSVR\work, so it was thinking that the UNC part was a parent directory rather than the UNC path specifier.