prasmussen / gdrive

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

Team Drive Support #260

Open dav1303 opened 7 years ago

dav1303 commented 7 years ago

Hi

Can we use gdrive with team drives ? I've done a test but it not see my main folder

Thanks

stevenjswanson commented 7 years ago

+1 this would be very useful.

aryabhatt commented 7 years ago

+1 please add the feature

vitalidze commented 7 years ago

+1 for this feature

davidvered commented 7 years ago

+1 for this too

bethsheets commented 7 years ago

+1 would greatly appreciate this feature

mxmader commented 6 years ago

seems this project is no longer actively maintained. has anyone found a solution for programmatically sending files to a Team Drive?

obradovic commented 6 years ago

Looks like its part of the v3 API: https://developers.google.com/drive/v3/reference/teamdrives

russell-j commented 6 years ago

Also would love to use gdrive with Team Drives, getting the same errors as people above:

Failed to get file: googleapi: Error 404: File not found: id., notFound

where id is my team drive folder ID.

https://developers.google.com/drive/api/v3/enable-teamdrives

iSWORD commented 6 years ago

Maybe we could use this as an alternative? https://github.com/gsuitedevs/PyDrive

mxmader commented 6 years ago

for python developers, that could indeed be quite handy. however, i would expect a command line interface to be provided by another project in order to call it a replacement or alternative to gdrive.

On Thu, Jun 21, 2018 at 12:34 PM, Muhannad Ajjan (INACTIVE) < notifications@github.com> wrote:

Maybe we could use this as an alternative? https://github.com/gsuitedevs/PyDrive

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/prasmussen/gdrive/issues/260#issuecomment-399201816, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWiMwp7vaauNEnlQyEWp63nWv4XhmDGks5t--dPgaJpZM4MFEsh .

petrpulc commented 5 years ago

I just added support for team drives in https://github.com/petrpulc/gdrive/commit/99488f93c0cd5f4c7e080b99f1173f872ae8cf47 (see #409 )

ghost commented 5 years ago

So I've downloaded v2.1.0 - how do I access my team drive? Nothing in the help text indicates what I need to do....

petrpulc commented 5 years ago

@MattB98 try to download my version from https://drive.google.com/drive/folders/12GSQhLLdKDdKzq_a-7WOrip5HnFmm1v9

The only change it brings right now, is that it marks the requests as Team-drive-compatible. Proceed as I usually do: open the google drive in browser, locate the item ids to manipulate with (last segment of URL) and use them in gdrive

timpauvictor commented 5 years ago

@MattB98 try to download my version from https://drive.google.com/drive/folders/12GSQhLLdKDdKzq_a-7WOrip5HnFmm1v9

The only change it brings right now, is that it marks the requests as Team-drive-compatible. Proceed as I usually do: open the google drive in browser, locate the item ids to manipulate with (last segment of URL) and use them in gdrive

How do I use the team id's with it?

petrpulc commented 5 years ago

The team drive object IDs are handled the same way as any other object IDs.

Assume that the file on team drive has ID 12345abcde, you can use the same gdrive download 12345abcde

Confurious commented 5 years ago

I am using the linux system and would like to download the team drive-compatible version of gdrive, could you point to me which version exactly it is as there are many in the link you provided? Thanks

petrpulc commented 5 years ago

The version is dependent on your platform.

On a "regular" and recent PC/Laptop use linux-x64. On older (32-bit) PC use linux-386.

sylvanosullivan commented 5 years ago

@petrpulc lifesaver, thanks man!

Oblivious02 commented 5 years ago

The version is dependent on your platform.

On a "regular" and recent PC/Laptop use linux-x64. On older (32-bit) PC use linux-386.

Is there any way I can upload directly to team drive?

petrpulc commented 5 years ago

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

Oblivious02 commented 5 years ago

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

Can you give me an example for the command I'm typing?

petrpulc commented 5 years ago

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

Can you give me an example for the command I'm typing?

1) Navigate with browser to the folder/team drive you want to upload to 2) Get last segment from URL, i.e.: drive.google.com/drive/u/1/folders/ID 3) Execute gdrive upload -p ID /path/on/pc

Oblivious02 commented 5 years ago

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

Can you give me an example for the command I'm typing?

  1. Navigate with browser to the folder/team drive you want to upload to
  2. Get last segment from URL, i.e.: drive.google.com/drive/u/1/folders/ID
  3. Execute gdrive upload -p ID /path/on/pc

"Failed to get file: googleapi: Error 404: File not found" And I'm pretty sure I got the ID right

Oblivious02 commented 5 years ago

Is there any way I can upload directly to team drive?

Of course, if you use the version with teamdrive support, use the ID of the folder you want to upload to. The fastest way to obtain the ID is to navigate to the shard drive with your browser and copy the last segment of URL

Can you give me an example for the command I'm typing?

  1. Navigate with browser to the folder/team drive you want to upload to
  2. Get last segment from URL, i.e.: drive.google.com/drive/u/1/folders/ID
  3. Execute gdrive upload -p ID /path/on/pc

I tried to reinstall again and I got this error:

root@97498:~# drive /usr/local/bin/drive: line 1: syntax error near unexpected token <' /usr/local/bin/drive: line 1:<!DOCTYPE html>gdrive-linux-arm - „Google“ diskas Githubissues.

  • Githubissues is a development platform for aggregating issues.