Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import shutil
- for root, dir, files in os.walk('./iTunes_Music'):
- if not files:
- continue
- for song_file in files:
- if not "mp3" in song_file:
- continue
- old_file_path = os.path.join(root, song_file)
- shutil.move(old_file_path, "./move/%s" % song_file)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement