Skip to content

Instantly share code, notes, and snippets.

Pawel Kowalski paweloque

View GitHub Profile
View Traverse Files and Rename
from os import listdir, rename
from os.path import isfile, join
#path = '/Volumes/HD-PATU3/Pawel/Pictures'
path = './'
for f in listdir(path):
if not isfile(join(path, f)):
spl = f.split('_')
#print 'File: %s' % f
You can’t perform that action at this time.