From e4a6d620727cc74e137505b5063c8ae6c3a34730 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Thu, 11 Jan 2024 20:52:41 +1100 Subject: [PATCH] Update sync.d * Cleanup array memory before we start adding files --- src/sync.d | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sync.d b/src/sync.d index 30d4fb67..4a9487b0 100644 --- a/src/sync.d +++ b/src/sync.d @@ -3875,6 +3875,9 @@ class SyncEngine { // Perform a filesystem walk to uncover new data to upload to OneDrive void scanLocalFilesystemPathForNewData(string path) { + + // Cleanup array memory before we start adding files + newLocalFilesToUploadToOneDrive = []; // To improve logging output for this function, what is the 'logical path' we are scanning for file & folder differences? string logPath; @@ -3954,7 +3957,7 @@ class SyncEngine { // Perform the upload uploadNewLocalFileItems(); - // Cleanup array memory + // Cleanup array memory after uploading all files newLocalFilesToUploadToOneDrive = []; } }