Add rename method to ConfigLoader
MODIFY
plextraktsync/config.py
plextraktsync/config.py
@@ -58,6 +58,12 @@ def copy(src: str, dst: str):
shutil.copyfile(src, dst)
+ @staticmethod
+ def rename(src: str, dst: str):
+ from os import rename
+
+ rename(src, dst)
+
@staticmethod
def load_json(path: str):
from json import JSONDecodeError, load

Add rename method to ConfigLoader