Page 1 of 1

[DONE] PyRenamer RPM package

PostPosted: Jan 1st, '14, 22:56
by redstutely
A mass file renamer written in PyGTK. With pyRenamer you can preview and change the name of several files at the same time easily.

Is there an RPM package for PyRenamer that works for Mageia 3 ?

Thanks in advance

Re: PyRenamer RPM package

PostPosted: Jan 1st, '14, 23:15
by redstutely
Found krename now, so probably this works just as well.

Re: PyRenamer RPM package

PostPosted: Jan 2nd, '14, 00:10
by doktor5000
Please mark the thread accordingly by editing the topic of the first post and prefix it by [DONE], thanks.

Related note, here's how to file a package request, after searching if it hasn't been reported yet already: https://wiki.mageia.org/en/How_to_repor ... ge_request

Re: [DONE] PyRenamer RPM package

PostPosted: May 13th, '14, 21:44
by ghostery
-- save it as rename.py --

Code: Select all
import os
from sys import argv
for filenames in (Suffix for Suffix in os.listdir('.') if Suffix.endswith(argv[1])):
    new_name, newname_extension = os.path.splitext(filenames)
    os.rename(filenames, new_name + argv[2])


-----
Usage: python(2 or 3) rename.py .png .jpg
Result: 1.png, 2.png, 3.png -> 1.jpg, 2.jpg, 3.jpg