Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import commands
- file_list = commands.getoutput('find . -name "*.mp3"').split('\n')
- for file in file_list:
- path = os.path.dirname(file)
- commands.getoutput('mkdir -p /Volumes/USBDRIVE/%s' % path)
- commands.getoutput('cp %s /Volumes/USBDRIVE/%s' % (file, file))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement