Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from os import mkdir, join, exists
- from shutil import copy2
- from datetime import now
- library: str = r'C:\Users\p\AppData\Roaming\MediaMonkey5'
- backup: str = r'C:\Users\p\Desktop\home\Dropbox\Backups\MediaMonkey'
- filepath: str = join(backup, 'Media Monkey 5 Library - ' + now().strftime("%Y-%m-%d"))
- if not exists(filepath):
- mkdir(filepath)
- fileList: list[str] = ['Plugins', 'Scripts', 'MediaMonkey.ini', 'MM5.DB']
- for file in fileList:
- fromFile: str = join(library, file)
- toFile: str = join(filepath, file)
- copy2(src=fromFile, dst=toFile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement