Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import glob
- import shutil
- destination = "/Volumes/HDD/lad1337/Desktop/m"
- origin = "/Volumes/INTENSO/Movies" # insert the path to the directory of interest here
- dirList = os.listdir(destination)
- print str(dirList)
- for fname in dirList:
- curOPath = origin+'/'+fname+'/'
- curDPath = destination+'/'+fname+'/'
- print fname
- for fType in ['nfo','tbn','jpg']:
- curList = glob.glob(curOPath+'*.'+fType)
- for metaDataFile in curList:
- print "moving", metaDataFile, "to", curDPath
- shutil.copy(metaDataFile,curDPath)
Advertisement
Add Comment
Please, Sign In to add comment