This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author aheejin
Recipients aheejin, tim.golden
Date 2010-08-12.13:57:32
SpamBayes Score 5.863372e-07
Marked as misclassified No
Message-id <1281621454.71.0.765623785967.issue9575@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you for your answer.

Actually I tried that in two Windows7-installed computers
and failed in both. But I don't think it is the problem of
path lengths; I created other paths that long and that deep
but os.listdir() works on them. That's why I wrote the path
verbatim on which the function crashes.
I couldn't find the exact conditions for it to crash.

I haven't heard of that "filesystem namespace prefix"
'\\\\?\\' before. I searched it in the manual and googled it
but couldn't find an explanation about it. But when I modified
the path in my example temp.py it worked! I don't know why though.
Could you point out some informative pages about this prefix?

Unfortunately, the example temp.py is characterizing only the
key reason of the crash. My program uses os.walk() and
os.listdir() was actually called within os.walk(),
so I cannot prepend the path with '\\\\?\\'.

Fortunately I found another workaround for my program,
but this still seems a bug..

Thank you.
History
Date User Action Args
2010-08-12 13:57:34aheejinsetrecipients: + aheejin, tim.golden
2010-08-12 13:57:34aheejinsetmessageid: <1281621454.71.0.765623785967.issue9575@psf.upfronthosting.co.za>
2010-08-12 13:57:33aheejinlinkissue9575 messages
2010-08-12 13:57:32aheejincreate