From 4418d0d63648fbbe69186460c57cf48f396141b7 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Mon, 20 Jan 2025 10:48:09 +1100 Subject: [PATCH] Support the moving of Shared Folder Links to other folders (#3052) * Implement Feature Request #2824 to support the moving of Shared Folder Links to other folders * Be consistent in log output for Personal Accounts, despite personal accounts not supporting relocatable Shared Folder links * Update /delta generation message to include the driveId * Code / Technical change was merged into https://github.com/abraunegg/onedrive/pull/3051 and committed to 'master' via https://github.com/abraunegg/onedrive/commit/5a20154726efee82d1f31f42235342a0a88dcc64 --- src/itemdb.d | 2 +- src/sync.d | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/itemdb.d b/src/itemdb.d index 7491edaeea..dd9640e0b6 100644 --- a/src/itemdb.d +++ b/src/itemdb.d @@ -652,7 +652,7 @@ final class ItemDatabase { return false; } } - + // returns true if an item id is in the database bool idInLocalDatabase(const(string) driveId, const(string) id) { synchronized(databaseLock) { diff --git a/src/sync.d b/src/sync.d index 498abd7d7f..5ed50b83a3 100644 --- a/src/sync.d +++ b/src/sync.d @@ -7534,13 +7534,14 @@ class SyncEngine { } catch (OneDriveException exception) { // Display error message displayOneDriveErrorMessage(exception.msg, getFunctionName!({})); - + // OneDrive API Instance Cleanup - Shutdown API, free curl object and memory generateDeltaResponseOneDriveApiInstance.releaseCurlEngine(); generateDeltaResponseOneDriveApiInstance = null; + // Perform Garbage Collection GC.collect(); - + // Must force exit here, allow logging to be done forceExit(); }