mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-07 08:22:13 +02:00
Update --list-shared-folders to only show folders (#1114)
* Update --list-shared-folders to only show folders
This commit is contained in:
parent
b365ec6322
commit
106e114929
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue