Sunday 1 March 2015

rename files in folder using python script

import os
# a~ipad.png to a.png
[os.rename(f, f.replace('~ipad', '')) for f in os.listdir('.') if not f.startswith('.')]

No comments:

Post a Comment