Message245777
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' |
|
Date |
User |
Action |
Args |
2015-06-24 21:44:37 | Djarbore | set | recipients:
+ Djarbore, paul.moore, tim.golden, zach.ware, steve.dower |
2015-06-24 21:44:37 | Djarbore | set | messageid: <1435182277.25.0.0494331055897.issue24504@psf.upfronthosting.co.za> |
2015-06-24 21:44:37 | Djarbore | link | issue24504 messages |
2015-06-24 21:44:37 | Djarbore | create | |
|