Thanks.

Unfortunately,os.listdir() returns the same string as glob.glob, for
the problem file I mentioned.
When I pass that string to os.rename()

OSError: [Errno 22] Invalid argument

> Sounds like it has something to do with Unicode.
> Your filenames aren't being interpreted correctly.  Perhaps os.listdir
> is giving you the UTF-8 versions
> rather than the Unicode versions of the filenames?
> -Luke
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to