Gdrive: Is there a way to list files and folders?

Created on 28 Apr 2016  路  4Comments  路  Source: prasmussen/gdrive

Pretty much what the title says. Maybe I'm doing something wrong but when I do gdrive list it only lists a (single) certain folder and some random files while everything else is ignored.

I read a couple of similar issues here like this and this one.

It's a nice application but unusable for me right now.

Thank you.

Most helpful comment

drive list --query " 'IdOfParent' in parents"
will list the items in a folder. How do you do get the ID of the parent ID (folder in question). Why you use the list command. If you caught on to the fact there is a bit of a catch 22 then worry no longer. You can also use
drive list --query " 'root' in parents"
to get a list of objects in the root folder

All 4 comments

Yes you can use this string:
drive list -m 1000 --absolute -q "mimeType = 'application/vnd.google-apps.folder' and trashed = false"
you can delete -m 1000 if you have less than 30 directories and --absolute if you don't want the full path

drive list --query " 'IdOfParent' in parents"
will list the items in a folder. How do you do get the ID of the parent ID (folder in question). Why you use the list command. If you caught on to the fact there is a bit of a catch 22 then worry no longer. You can also use
drive list --query " 'root' in parents"
to get a list of objects in the root folder

the help is a bit different:
gdrive help
gdrive help list
pay attention to the position of [global] and [options] (took me some time figure out, I have to read here b4 understanding it lol)
it also points to online docs for help

Try: gdrive list -m 100

Was this page helpful?
0 / 5 - 0 ratings

Related issues

devova picture devova  路  7Comments

aservet1 picture aservet1  路  5Comments

msnoon picture msnoon  路  6Comments

4getit picture 4getit  路  4Comments

skyuuka picture skyuuka  路  4Comments