diff --git a/projects/PiNetAI/utils/file_utils.py b/projects/PiNetAI/utils/file_utils.py new file mode 100644 index 000000000..8c95569f3 --- /dev/null +++ b/projects/PiNetAI/utils/file_utils.py @@ -0,0 +1,16 @@ +# file_utils.py + +import os +import shutil + +def create_directory(path): + os.makedirs(path, exist_ok=True) + +def delete_directory(path): + shutil.rmtree(path, ignore_errors=True) + +def copy_file(src, dst): + shutil.copyfile(src, dst) + +def move_file(src, dst): + shutil.move(src, dst)