[Tutor] listdir, ispath, and unicode

Poor Yorick gp@pooryorick.com
Tue, 30 Jul 2002 14:53:48 -0600


I am running Windows 2000 and have files which use cyrillic characters 
in their names.  I am running into this problem when I try to work with 
them:
 
 
 >>> os.listdir('c:\\tmp2')[0]
'????????.url'
 >>> os.path.isfile(os.listdir('c:\\tmp2')[0])
0
 
 
Can anyone tell me why os.path.isfile does not recognize my file?