Rename files with numbers

Florian Diesch diesch at spamfence.net
Sun Nov 13 15:16:29 EST 2005


dudufigueiredo at gmail.com <dudufigueiredo at gmail.com> wrote:
> Ok, so the function simplifyed without loops:
>
> def renamer(folder, band):
> 	archive = #file to transform
> 	rest = archive[3:]
> 	print band + " -",rest.capitalize()
>
>
> obs: the file names came this way(with spaces or apostrophes) from the
> cd i imported.

Maybe you want to take a look at Jack
<http://www.home.unix-ag.org/arne/jack/>, a IMHO very nice CD ripper
written in Python.


   Florian
-- 
Einen Troll zu füttern ist das gleiche als würde man einen Haufen
Hundescheisse sehen, absichtlich reinsteigen und sich dann beschweren.
(Christian Schneider in <2005-10-25T10-04-37 at bofh.my-fqdn.de>)



More information about the Python-list mailing list