Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import shutil
- from os import path
- if __name__ == '__main__':
- control_path = path.abspath(path.join(os.environ["LocalAppData"], "Remedy/Control/Default-Epic-User"))
- control_ultimate_path = path.abspath(path.join(os.environ["UserProfile"], "Documents/My Games/Control/Saves"))
- for root, dirs, files in os.walk(control_path):
- relative_path = path.relpath(root, control_path)
- for file_full_name in files:
- if file_full_name.startswith("--"):
- continue
- file_name, _file_ext = path.splitext(file_full_name)
- shutil.copy(
- src=path.join(root, file_full_name),
- dst=path.join(control_ultimate_path, f"{relative_path}_{file_name}")
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement