mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-13 03:12:37 +02:00
Encode syncFolderName for easier 'canFind' processing
* Resolve "Remote change discarded - not in --single-directory scope" when syncing Shared Folder sub directories
This commit is contained in:
parent
e7267e597b
commit
943fcc032b
|
@ -327,7 +327,7 @@ final class SyncEngine
|
||||||
if (("id" in idDetails) != null) {
|
if (("id" in idDetails) != null) {
|
||||||
// valid response from onedrive.getPathDetailsById(id) a JSON item object present
|
// valid response from onedrive.getPathDetailsById(id) a JSON item object present
|
||||||
if ((idDetails["id"].str == id) && (isItemFolder(idDetails))){
|
if ((idDetails["id"].str == id) && (isItemFolder(idDetails))){
|
||||||
syncFolderName = idDetails["name"].str;
|
syncFolderName = encodeComponent(idDetails["name"].str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -389,6 +389,7 @@ final class SyncEngine
|
||||||
} else {
|
} else {
|
||||||
// What is this item's path?
|
// What is this item's path?
|
||||||
thisItemPath = item["parentReference"]["path"].str;
|
thisItemPath = item["parentReference"]["path"].str;
|
||||||
|
|
||||||
// Check this item's id to see if this is a change we want to process
|
// Check this item's id to see if this is a change we want to process
|
||||||
if ( (item["id"].str == id) || (item["parentReference"]["id"].str == id) || (canFind(thisItemPath, syncFolderName)) ){
|
if ( (item["id"].str == id) || (item["parentReference"]["id"].str == id) || (canFind(thisItemPath, syncFolderName)) ){
|
||||||
// This is a change we want to apply
|
// This is a change we want to apply
|
||||||
|
|
Loading…
Reference in a new issue