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 Djarbore
Recipients Djarbore, paul.moore, steve.dower, tim.golden, zach.ware
Date 2015-06-24.21:44:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435182277.25.0.0494331055897.issue24504@psf.upfronthosting.co.za>
In-reply-to
Content
My code is:
mypath = 'Z:\Pr Files\norma'
file_list = [ f for f in listdir(mypath) if isfile(join(mypath,f))]

Error:
Traceback (most recent call last):
  File "C:\Documents and Settings\Administrator\Desktop\uni\click zhenilo workshop\noise.py", line 13, in <module>
    file_list = [ f for f in listdir(mypath) if isfile(join(mypath,f))]
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: 'Z:\\Pr Files\norma/*.*'

It works all right, if the path is:
mypath = 'Z:\Pr Files\Norma'
History
Date User Action Args
2015-06-24 21:44:37Djarboresetrecipients: + Djarbore, paul.moore, tim.golden, zach.ware, steve.dower
2015-06-24 21:44:37Djarboresetmessageid: <1435182277.25.0.0494331055897.issue24504@psf.upfronthosting.co.za>
2015-06-24 21:44:37Djarborelinkissue24504 messages
2015-06-24 21:44:37Djarborecreate