diff --git a/src/sync.d b/src/sync.d index dd8609ae..868548da 100644 --- a/src/sync.d +++ b/src/sync.d @@ -199,6 +199,7 @@ final class SyncEngine if (isItemRoot(driveItem) || !item.parentId || isRoot) { log.vlog("Root"); + item.parentId = null; // ensures that it has no parent item.driveId = driveId; // HACK: makeItem() cannot set the driveId propery of the root itemdb.upsert(item); return;