Add rename method to ConfigLoader
@@ -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
