Update --list-shared-folders to only show folders (#1114)

* Update --list-shared-folders to only show folders
This commit is contained in:
abraunegg 2020-11-01 10:06:08 +11:00 committed by GitHub
parent b365ec6322
commit 106e114929
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5920,11 +5920,14 @@ final class SyncEngine
string sharedFolderName;
string sharedByName;
string sharedByEmail;
// is the shared item with us a 'folder' ?
// we only handle folders, not files or other items
if (isItemFolder(searchResult)) {
// Debug response output
log.vdebug("shared folder entry: ", searchResult);
sharedFolderName = searchResult["name"].str;
// configure who this was shared by
if ("sharedBy" in searchResult["remoteItem"]["shared"]) {
// we have shared by details we can use
if ("displayName" in searchResult["remoteItem"]["shared"]["sharedBy"]["user"]) {
@ -5951,6 +5954,7 @@ final class SyncEngine
}
}
}
}
write("\n");
} else {
// Log that an invalid JSON object was returned