Renaming of files in OS directory

Chris Rebert clp2 at rebertia.com
Sun Aug 8 04:15:51 EDT 2010


On Sun, Aug 8, 2010 at 1:02 AM, blur959 <blur959 at hotmail.com> wrote:
> Hi, all, I am writing a program that renames files inside OS
> directories the user provides. I am at the early stage of writing it
> and I encountered some problems.
>
> Below is my code. There is an error i received when i run this code.
> The error is, WindowsError: [Error 123] The filename, directory name,
> or volume label syntax is incorrect.

Well, what directory did you input? Apparently it wasn't a valid or extant one.

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list