Skip to content

Instantly share code, notes, and snippets.

@vlazar-
Created November 13, 2016 19:45
Show Gist options
  • Save vlazar-/e5118c0cb6de9672b59decea204e90ed to your computer and use it in GitHub Desktop.
Save vlazar-/e5118c0cb6de9672b59decea204e90ed to your computer and use it in GitHub Desktop.
import glob, re, os
counter = 1
for filename in glob.glob('C:/littleBits_mp3/*.mp3'):
os.rename(filename, 'C:/littleBits_mp3/%d.mp3' % (counter,))
counter = counter + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment