Skip to content

Instantly share code, notes, and snippets.

@squarepegsys
Created July 24, 2015 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save squarepegsys/d503b8cc9df6d9ec99f1 to your computer and use it in GitHub Desktop.
Save squarepegsys/d503b8cc9df6d9ec99f1 to your computer and use it in GitHub Desktop.
slow copy for lima
#!/opt/local/bin/python
import time
import shutil
import os
dest = "/path/to/lima"
completed = [x for x in os.listdir(dest) if os.path.isdir(x)]
music = [x for x in os.listdir(".") if os.path.isdir(x)]
for f in music:
if f not in completed and f!='iTunes':
print(f)
shutil.copytree(f,os.path.join(dest,f))
time.sleep(2*60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment