New submission from Denis Gordeev:
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
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'
--
components: Windows
messages: 245777
nosy: Denis Gordeev, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: os.listdir() error if the last folder starts not with the capital letter
versions: Python 2.7
___
Python tracker
<http://bugs.python.org/issue24504>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com