Add copy method to ConfigLoader
MODIFY
plextraktsync/config.py
plextraktsync/config.py
@@ -54,6 +54,12 @@ def write(path: str, config):
return ConfigLoader.write_json(path, config)
raise RuntimeError(f'Unknown file type: {path}')
+ @staticmethod
+ def copy(src: str, dst: str):
+ import shutil
+
+ shutil.copyfile(src, dst)
+
@staticmethod
def load_json(path: str):
with open(path, "r", encoding="utf-8") as fp:

Add copy method to ConfigLoader