From cc1764e26d35b506d59e5e93a7cc4209df197a9b Mon Sep 17 00:00:00 2001 From: Nikita Date: Mon, 26 Oct 2020 15:11:26 +1000 Subject: [PATCH] Fix error with deleting all previous files --- Services/FileManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/FileManager.php b/Services/FileManager.php index 44a2bb0..ff7e018 100644 --- a/Services/FileManager.php +++ b/Services/FileManager.php @@ -108,7 +108,7 @@ public function syncFiles($options = array()) throw new \Exception("to_folder does not exist"); } $result = null; - system("rsync -a --delete " . escapeshellarg($from . '/') . " " . escapeshellarg($to), $result); + system("rsync -a " . escapeshellarg($from . '/') . " " . escapeshellarg($to), $result); if ($result !== 0) { throw new \Exception("Sync failed with errorcode '$result'!");