Rename files with numbers

Dudu Figueiredo dudufigueiredo at gmail.com
Tue Nov 1 02:48:18 CET 2005


Micah, thanks a lot, nice script!
But its not completly working, i ran this:

    fix_ugly_song_names('C:\My Shared Folder\Rubber Soul', 'The
Beatles', spacerepl=' ')

And the shell prints this:

    01 drive my car.mp3 --> The Beatles - Drive My Car.mp3
    02 norwegian wood (this bird has flo).mp3 --> The Beatles -
Norwegian Wood This Bird Has Flo.mp3
    03 you won't see me.mp3 --> The Beatles - You Wont See Me.mp3
        04 nowhere man.mp3 --> The Beatles - Nowhere Man.mp3
    05 think for yourself.mp3 --> The Beatles - Think For Yourself.mp3
    06 the word.mp3 --> The Beatles - The Word.mp3
    07 michelle.mp3 --> The Beatles - Michelle.mp3
    08 what goes on.mp3 --> The Beatles - What Goes On.mp3
    09 girl.mp3 --> The Beatles - Girl.mp3
    10 i'm looking through you.mp3 --> The Beatles - Im Looking Through
You.mp3
    11 in my life.mp3 --> The Beatles - In My Life.mp3
    12 wait.mp3 --> The Beatles - Wait.mp3
    13 if i needed someone.mp3 --> The Beatles - If I Needed
Someone.mp3
    14 run for your life.mp3 --> The Beatles - Run For Your Life.mp3

But the files didn't change in the folder!
Is there something mising or i'm doing something worng ??




More information about the Python-list mailing list