mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-19 22:25:03 +02:00
Process OneDrive Personal Shared Folders only if account type is 'personal' (#972)
* Update code to ensure that OneDrive Shared Folders are processed, only if account type is 'personal'
This commit is contained in:
parent
d653fc7ee2
commit
41d92ddab5
20
src/sync.d
20
src/sync.d
|
@ -539,14 +539,18 @@ final class SyncEngine
|
||||||
applyDifferences(driveId, rootId, performFullItemScan);
|
applyDifferences(driveId, rootId, performFullItemScan);
|
||||||
|
|
||||||
// Check OneDrive Personal Shared Folders
|
// Check OneDrive Personal Shared Folders
|
||||||
// https://github.com/OneDrive/onedrive-api-docs/issues/764
|
if (accountType == "personal"){
|
||||||
Item[] items = itemdb.selectRemoteItems();
|
// https://github.com/OneDrive/onedrive-api-docs/issues/764
|
||||||
foreach (item; items) {
|
Item[] items = itemdb.selectRemoteItems();
|
||||||
log.vdebug("------------------------------------------------------------------");
|
foreach (item; items) {
|
||||||
if (!cfg.getValueBool("monitor")) {
|
log.vdebug("------------------------------------------------------------------");
|
||||||
log.log("Syncing this OneDrive Personal Shared Folder: ", item.name);
|
if (!cfg.getValueBool("monitor")) {
|
||||||
} else {
|
log.log("Syncing this OneDrive Personal Shared Folder: ", item.name);
|
||||||
log.vlog("Syncing this OneDrive Personal Shared Folder: ", item.name);
|
} else {
|
||||||
|
log.vlog("Syncing this OneDrive Personal Shared Folder: ", item.name);
|
||||||
|
}
|
||||||
|
// Check OneDrive Personal Folders
|
||||||
|
applyDifferences(item.remoteDriveId, item.remoteId, performFullItemScan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue