Message124488
On Windows, using the bytes APIs for filenames is unreliable and fails for characters that are not in the ANSI code page. So you should use
import os
for i in os.listdir(u'.'):
print os.path.isfile(i), '\t', i
instead. |
|
Date |
User |
Action |
Args |
2010-12-22 06:19:03 | loewis | set | recipients:
+ loewis, belopolsky, tim.golden, r.david.murray, brian.curtin, wyj1046 |
2010-12-22 06:19:03 | loewis | set | messageid: <1292998743.49.0.429969251116.issue10754@psf.upfronthosting.co.za> |
2010-12-22 06:18:56 | loewis | link | issue10754 messages |
2010-12-22 06:18:56 | loewis | create | |
|