hello,
I want to find all files with the extension "*.txt".
From the examples in "Learning Python, Lutz and Asher" and
from the website I see examples where you also may specify a wildcard filegroup.
But when I try this
files = os.listdir('D:\ \akto_yk\\yk_co ntrole\\*.txt')
I get an error message
WindowsError: [Errno 123] The filename, directory name, or volume label syntax is incorrect:
'D:\\akto_yk\\y k_controle\\*.t xt/*.*'
What am I doing wrong ?
thanks,
Stef Mientki
I want to find all files with the extension "*.txt".
From the examples in "Learning Python, Lutz and Asher" and
from the website I see examples where you also may specify a wildcard filegroup.
But when I try this
files = os.listdir('D:\ \akto_yk\\yk_co ntrole\\*.txt')
I get an error message
WindowsError: [Errno 123] The filename, directory name, or volume label syntax is incorrect:
'D:\\akto_yk\\y k_controle\\*.t xt/*.*'
What am I doing wrong ?
thanks,
Stef Mientki
Comment