mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-11 10:22:21 +02:00
Update 'root' item identification handling (#457)
* Add additional check to ensure item root we flag as 'root' is not just name checked as 'root'
This commit is contained in:
parent
ea2e4a98bf
commit
92d2f14f15
|
@ -635,8 +635,8 @@ final class SyncEngine
|
||||||
// This is not a deleted item
|
// This is not a deleted item
|
||||||
// Test is this is the OneDrive Users Root?
|
// Test is this is the OneDrive Users Root?
|
||||||
// Use the global's as initialised via init() rather than performing unnecessary additional HTTPS calls
|
// Use the global's as initialised via init() rather than performing unnecessary additional HTTPS calls
|
||||||
if ((id == defaultRootId) && (item["name"].str == "root")) {
|
if ((id == defaultRootId) && (isItemRoot(item)) && (item["name"].str == "root")) {
|
||||||
// This IS the OneDrive Root
|
// This IS a OneDrive Root item
|
||||||
isRoot = true;
|
isRoot = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue