From 56c25df15436f7b5136d530da4cceb32eeccffe6 Mon Sep 17 00:00:00 2001 From: administrateur Date: Sun, 30 Mar 2025 08:03:20 +0200 Subject: [PATCH] fix: not destroying cache --- script_creator.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/script_creator.py b/script_creator.py index c189360..6819cc6 100644 --- a/script_creator.py +++ b/script_creator.py @@ -58,10 +58,6 @@ def rclone_sync(website, local_path): config_file = write_rclone_config() remote_path = f"nextcloud:{NEXTCLOUD_PATH}/@{website}" - if os.path.exists(local_path): - shutil.rmtree(local_path) - os.makedirs(local_path, exist_ok=True) - cmd = f"rclone --config {config_file} sync {remote_path} {local_path} --use-server-modtime --delete-after --fast-list --multi-thread-streams=4 --transfers=8 --checkers=16 --verbose" log_debug(f"Syncing from {remote_path} to {local_path}") return stream_command(cmd)