mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-19 22:26:37 +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
|
||||
// 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
|
||||
if ((id == defaultRootId) && (isItemRoot(item)) && (item["name"].str == "root")) {
|
||||
// This IS a OneDrive Root item
|
||||
isRoot = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue