All pastes #611053 Raw Edit

musicmove.py

public python v1 · immutable
·published 2007-07-09 19:19 UTC
rendered paste body
#!/usr/bin/env python# musicmove.py# save to any folder as musicmove.py and chmod +x musicmove.yp# edit musiclist and destination below# then run it ./musicmove.pyimport osmusiclist='/path/to/musiclocations.txt'  #EDIT: change this to the location of your musiclocations.txt filedestination='/path/to/new/music/location/'  #EDIT: change this to the destination folder for your musicf=open(musiclist)for line in f:    line=line[:-1]    os.system('mv '+line+' '+destination)