Skip to content

Instantly share code, notes, and snippets.

@shabda
Created September 26, 2013 19:04
Show Gist options
  • Save shabda/6719013 to your computer and use it in GitHub Desktop.
Save shabda/6719013 to your computer and use it in GitHub Desktop.
path = "./" #Override this
dropbox_dirs = set([el[:10] for el in os.listdir(".")
if os.path.join(path, el) and not el.startswith(".")])
for el in dropbox_dirs:
if not os.path.exists(os.path.join(path, el)):
os.mkdir(os.path.join(path, el))
os.system("mv %s*.* %s"%(os.path.join(path, el), os.path.join(path, el)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment