On Tue, 9 Oct 2007, Tony Cappellini wrote:
> Unfortunately,os.listdir() returns the same string as glob.glob, for
> the problem file I mentioned.
Tony --
Try specifying the argument to os.listdir as a unicode string. I've found
that cures many ailments like this.
e.g., instead of something lik
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
Tony Cappellini wrote:
> Using Windows XP, SP2 and Python 2.3
>
> I've written a script which walks through a bunch of directories and
> replaces characters which are typically illegals as filenames, with an
> '_' character.
[...]
> When my script encounters a directory with the unwanted charact
Tony Cappellini wrote:
> Using Windows XP, SP2 and Python 2.3
>
> I've written a script which walks through a bunch of directories and
> replaces characters which are typically illegals as filenames, with an
> '_' character.
>
> The directories are part of a package of software which is released by
Using Windows XP, SP2 and Python 2.3
I've written a script which walks through a bunch of directories and
replaces characters which are typically illegals as filenames, with an
'_' character.
The directories are part of a package of software which is released by
a group of people from Japan, and