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 Anthony Sottile
Recipients Anthony Sottile, paul.moore, steve.dower, tim.golden, zach.ware
Date 2018-01-12.16:56:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
On windows, a deep path can be accessed by prefixing the path with \\?\

The call to `listdir()` fails because it uses a posix separator.

A quick patch to fix this is to use `SEP` here: (I can submit a patch for this)

Here's a stacktrace

>>> os.listdir(r'\\?\C:\Temp')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: '\\\\?\\C:\\Temp/*.*'

This works fine in python3, as the code has been refactored to use `SEP` already.

>>> os.listdir(r'\\?\C:\Temp')
Date User Action Args
2018-01-12 16:56:45Anthony Sottilesetrecipients: + Anthony Sottile, paul.moore, tim.golden, zach.ware, steve.dower
2018-01-12 16:56:45Anthony Sottilesetmessageid: <>
2018-01-12 16:56:45Anthony Sottilelinkissue32539 messages
2018-01-12 16:56:45Anthony Sottilecreate