@@ -1614,6 +1614,10 @@ class SyncEngine {
1614
1614
if (debugLogging) {
1615
1615
addLogEntry("Number of JSON items to process is: " ~ to!string(jsonItemsToProcess.length), ["debug"]);
1616
1616
addLogEntry("Number of JSON items processed was: " ~ to!string(processedCount), ["debug"]);
1617
+ addLogEntry("", ["debug"]);
1618
+ string jsonProcessingCompleteLineEntry = format("Processing of JSON items from driveId %s and itemId %s is complete", driveIdToQuery, itemIdToQuery);
1619
+ addLogEntry(jsonProcessingCompleteLineEntry, ["debug"]);
1620
+ addLogEntry("", ["debug"]);
1617
1621
}
1618
1622
1619
1623
// Notification to user regarding number of objects received from OneDrive API
@@ -1706,7 +1710,7 @@ class SyncEngine {
1706
1710
// This is not a deleted item
1707
1711
if (debugLogging) {addLogEntry("This item is not a OneDrive online deletion change", ["debug"]);}
1708
1712
1709
- // Only calculate this once
1713
+ // Only calculate these elements once
1710
1714
itemIsRoot = isItemRoot(onedriveJSONItem);
1711
1715
itemHasParentReferenceId = hasParentReferenceId(onedriveJSONItem);
1712
1716
itemIdMatchesDefaultRootId = (thisItemId == appConfig.defaultRootId);
@@ -2628,12 +2632,17 @@ class SyncEngine {
2628
2632
2629
2633
// Attempt to apply this changed item
2630
2634
applyPotentiallyChangedItem(existingDatabaseItem, existingItemPath, newDatabaseItem, newItemPath, onedriveJSONItem);
2635
+
2636
+ // Is this JSON object a 'remote' item?
2637
+ if(isItemRemote(onedriveJSONItem)) {
2638
+ // Create a 'root' and 'Shared Folder' DB Tie Records for this JSON object in a consistent manner
2639
+ createRequiredSharedFolderDatabaseRecords(onedriveJSONItem);
2640
+ }
2631
2641
} else {
2632
2642
// Action this JSON item as a new item as we have no DB record of it
2633
2643
// The actual item may actually exist locally already, meaning that just the database is out-of-date or missing the data due to --resync
2634
2644
// But we also cannot compute the newItemPath as the parental objects may not exist as well
2635
2645
if (debugLogging) {addLogEntry("OneDrive JSON item is potentially a new local item", ["debug"]);}
2636
-
2637
2646
// Attempt to apply this potentially new item
2638
2647
applyPotentiallyNewLocalItem(newDatabaseItem, onedriveJSONItem, newItemPath);
2639
2648
}
@@ -10654,7 +10663,7 @@ class SyncEngine {
10654
10663
10655
10664
// What 'driveData' are we adding?
10656
10665
if (debugLogging) {
10657
- addLogEntry("adding this 'driveData' to childrenData = " ~ to!string(driveData), ["debug"]);
10666
+ addLogEntry("Adding this 'driveData' to childrenData = " ~ to!string(driveData), ["debug"]);
10658
10667
}
10659
10668
10660
10669
// add the responded 'driveData' to the childrenData to process later
0 commit comments