Query for all changes if using sync_list file (#659)

* If we are using a sync_list file, using deltaLink will actually 'miss' changes (moves & deletes) on OneDrive as using sync_list discards changes
This commit is contained in:
abraunegg 2019-09-16 05:06:02 +10:00 committed by GitHub
parent e32b8b3c7f
commit 2abc05af1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -590,7 +590,14 @@ final class SyncEngine
{
log.vlog("Applying changes of Path ID: " ~ id);
JSONValue changes;
string deltaLink = itemdb.getDeltaLink(driveId, id);
// If we are using a sync_list file, using deltaLink will actually 'miss' changes (moves & deletes) on OneDrive as using sync_list discards changes
string deltaLink = "";
string userSyncList = cfg.configDirName ~ "/sync_list";
if (!exists(userSyncList)){
// not using sync_list file, use the delta link
deltaLink = itemdb.getDeltaLink(driveId, id);
}
// Query the name of this folder id
string syncFolderName;