Gdrive: Upload to specific directory

Created on 24 May 2017  路  4Comments  路  Source: prasmussen/gdrive

Hello, I have a directory name with seaweedFS and I want to upload data to that directory? which parameter is gong to use for that? please help

Most helpful comment

You can find the id of the folder by searching for it with:
gdrive list -q "name contains 'seaweedFS'"
Syntax for possible queries: https://developers.google.com/drive/v3/web/search-parameters.

All 4 comments

From the documentation

gdrive upload --parent 0B3X9GlR6EmbnY1RLVTk5VUtOVkk gdrive-osx-x64

Where 0B3X9GlR6EmbnY1RLVTk5VUtOVkk is the id of folder you want to upload to and gdrive-osx-x64 is the file you want to upload

You can find the id of the folder by searching for it with:
gdrive list -q "name contains 'seaweedFS'"
Syntax for possible queries: https://developers.google.com/drive/v3/web/search-parameters.

I would use this
gdrive list --name-width 0 --absolute --query "name = 'seaweedFS' and mimeType = 'application/vnd.google-apps.folder' and trashed = false"

You can also make a shared link from folder in web gui and ID is the end of it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikeyfev1 picture mikeyfev1  路  4Comments

4getit picture 4getit  路  4Comments

jnovotny picture jnovotny  路  3Comments

dominion66 picture dominion66  路  4Comments

divamgupta picture divamgupta  路  5Comments