Problem in accessing long paths.

V

venutaurus539

Hello All,
I have a requirement where I've to access folders with
path lengths >255 ( Windows only supports 255). To do this I've
created junction points for the folders whose length is > 255. The
problem is my python script is unable to recognize these junction
points.

As an example I've a junction point JC04 pointing to a folder
DeepPathLevel57which has path length around 700. When I do

"cd E:\JunctionPaths\JC04\DeepPathLevel57" at command prompt, am able
to access the folder. When I try to list the directories in that
folder using os.listdir in python am getting the below error.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
File "C:\JPDump\RecallStubFopen.py", line 362, in <module>
for f in os.listdir(fpath):
WindowsError: [Error 3] The system cannot find the path specified: u'E:
\\JunctionPaths\\JC04\\DeepPathLevel57\\*.*'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top