flying-circus / pyfilesystem

Automatically exported from code.google.com/p/pyfilesystem
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

OSFS : Windows + UNC network paths problem #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to open an UNC path like \\nas\public from OSFS

What is the expected output? What do you see instead?
I get ResourceNotFoundError("Root directory does not exist")

What version of the product are you using? On what operating system?
Last SVN from github mirror

Please provide any additional information below.
I removed the "if sys.platform == "win32":" part in osfs/__init__.py line 106 
and it works. I dont know what effects it could have.

Thank you !

Original issue reported on code.google.com by julien.b...@gmail.com on 5 Jan 2011 at 11:31

GoogleCodeExporter commented 9 years ago
I were using windows + python2.5 for these tests of course

Original comment by julien.b...@gmail.com on 5 Jan 2011 at 11:32

GoogleCodeExporter commented 9 years ago
The code in question forces windows to enable "long unc" mode on the path by 
appending the "\\?\" prefix, which lifts various limitations such as path 
length.  Looks like it's breaking for regular UNC paths.

I will work on a proper fix today.  In the meantime, can you confirm whether it 
works if you give the long UNC path like this: "\\?\UNC\nas\public\"

Original comment by rfkel...@gmail.com on 7 Jan 2011 at 11:50

GoogleCodeExporter commented 9 years ago
I have committed a simple fix in svn rev 605.  There are probably still some 
edge cases that aren't handled correctly, but can you confirm whether this 
works for your case?

Original comment by rfkel...@gmail.com on 8 Jan 2011 at 2:03

GoogleCodeExporter commented 9 years ago
see 
http://groups.google.com/group/pyfilesystem-discussion/browse_thread/thread/d628
8d70231f910d/b55c7101ec66ba9d#b55c7101ec66ba9d

Original comment by julien.b...@gmail.com on 10 Jan 2011 at 7:41

GoogleCodeExporter commented 9 years ago
see 
http://groups.google.com/group/pyfilesystem-discussion/browse_thread/thread/d628
8d70231f910d/b55c7101ec66ba9d#b55c7101ec66ba9d

Original comment by julien.b...@gmail.com on 10 Jan 2011 at 7:41

GoogleCodeExporter commented 9 years ago
Thanks, I have committed your improvements to trunk

Original comment by rfkel...@gmail.com on 10 Jan 2011 at 9:11