prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.19k forks source link

how to see files shared with me #232

Open jnovotny opened 7 years ago

jnovotny commented 7 years ago

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

AngryNinja commented 7 years ago

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

gdrive list --query "sharedWithMe"

Hope it helps.

dawe commented 5 years ago

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

zmunro commented 5 years ago

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

shiba24 commented 2 years ago

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.