gdrive icon indicating copy to clipboard operation
gdrive copied to clipboard

how to see files shared with me

Open jnovotny opened this issue 8 years ago • 4 comments

Ionly see one file with teh CLI:

$ gdrive-linux-x64 list -m 10 Id Name Type Size Created 0B-NEMpvajLa2c3RhcnRlcl9maWxlX2Rhc2hlclYw Getting started bin 696.8 KB 2016-04-14 12:46:55

however there is a folder shared with me I see in the google drive webapp, how do I access that with the CLI?

Thanks, Jason

jnovotny avatar Dec 19 '16 18:12 jnovotny

To see the files shared with you, you can use the following command...

gdrive list --query "sharedWithMe"

Hope it helps.

AngryNinja avatar Jan 11 '17 20:01 AngryNinja

How to list a shared drive, instead? "sharedWithMe" only lists shared files

dawe avatar Jun 18 '19 10:06 dawe

@AngryNinja any idea how to see the contents of those drives that are shared with you?

zmunro avatar Jun 21 '19 15:06 zmunro

Get your folder ID (for example you can get it from URL: https://drive.google.com/drive/folders/<FOLDER_ID> ). Then

gdrive list  --query "( ( not 'provideYourEmailAddressHere' in owners ) or ( visibility = 'anyoneCanFind' or visibility = 'anyoneWithLink' or visibility = 'domainCanFind' or visibility = 'domainWithLink' or visibility = 'limited' ) ) and trashed = false and '<FOLDER_ID>' in parents"

It worked for me.

shiba24 avatar Feb 01 '22 08:02 shiba24