From 92d2f14f153c2773969147efbcd94c608bc77578 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Tue, 9 Apr 2019 05:05:47 +1000 Subject: [PATCH] Update 'root' item identification handling (#457) * Add additional check to ensure item root we flag as 'root' is not just name checked as 'root' --- src/sync.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sync.d b/src/sync.d index bb29f954..170c4eb8 100644 --- a/src/sync.d +++ b/src/sync.d @@ -634,9 +634,9 @@ final class SyncEngine if(!isItemDeleted(item)){ // This is not a deleted item // Test is this is the OneDrive Users Root? - // Use the global's as initialised via init() rather than performing unnecessary additional HTTPS calls - if ((id == defaultRootId) && (item["name"].str == "root")) { - // This IS the OneDrive Root + // Use the global's as initialised via init() rather than performing unnecessary additional HTTPS calls + if ((id == defaultRootId) && (isItemRoot(item)) && (item["name"].str == "root")) { + // This IS a OneDrive Root item isRoot = true; } }