Gdrive: Team Drive Support

Created on 18 Feb 2017  Â·  38Comments  Â·  Source: prasmussen/gdrive

Hi

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

Thanks

Most helpful comment

@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

All 38 comments

+1 this would be very useful.

+1 please add the feature

+1 for this feature

+1 for this too

+1 would greatly appreciate this feature

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

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

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

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) <
[email protected]> 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
.

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....

@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

@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?

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

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

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.

@petrpulc lifesaver, thanks man!

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?

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

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?

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

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

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:gdrive-linux-arm - „Google“ diskas

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

Do you have the version that is compiled with team drive support?

I have such version available for most of the platforms on https://github.com/petrpulc/gdrive

Yes, I've installed the linux 64x for my Ubuntu 16 and got this error:

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:gdrive-linux-arm - „Google“ diskas

Hi,

Cheers for the gdive-"program"!

I have installed gdive via. LINUX (command line) on my seedbox (seedhost.eu).

I took the x64 Linux file from: https://github.com/gdrive-org/gdrive#downloads

I got the token accepted, and I tried to "fool around" to learn the commands.

I can upload files and directorys from my seedbox to my google drive without problems, even sepcifying a specific folder in google drive, and not only place the uploads in the root of my google drive.

However (and sorry for the long story up to now) I am not able to upload stuff to my "Team Drive" on the google drive.

When I write:

gdrive upload -r Testfolder -p folder-ID (a folder inside my personale google drive)
Everything works.

When I write:

gdrive upload -r Testfolder -p folder-ID (a folder I just made inside my team drive)

Then it reports an error (i am sorry I can't provide the exact lyrics about the error, but I am away from my personel computer with putty installed)

It seems that gdrive doesn't have acces to my team drive, and when I write:

gdrive list

Then the list only shows the folders and files inside my personel google drive.

Any thoughts what is wrong? As I have understanded, the gdrive was not able to handle team drive, but this was added in v3 of gdrive, but now it is also added in the 2.1 version, which is the one I have downloaded on the link here over(?)

Again thanks for all the hard work provided to us LINUX noobs ;o)

However (and sorry for the long story up to now) I am not able to upload stuff to my "Team Drive" on the google drive.

To do that, you need to use a version compiled with a team drive support, not this version.

If you have read this thread prior to asking, you would get a link do my version that has team drive support.

TLDR: Try to use version form here: https://drive.google.com/drive/folders/12GSQhLLdKDdKzq_a-7WOrip5HnFmm1v9

The changes are available in pull request: #409

Aaaaaaah.. Sorry!

I have actually read the whote thread, and also some other threads around on the web.

Somewhere I came to the understanding, that everything (at some point) had been compiled into the version in my link.. ("One version to rule them all")

Well that makes sense then.

(Now I also understand why Mohammed2277 have problems: The link from my link can be used directly in the command line program in Linux.. Where the link you are providing to the other version has a "download button" which we can't direct link to inside the command line (might be because the downloadbutton changes link, so that other persons can't deeplink directly to it)..

But we should just download the file you link to, rename it to "gdrive", upload it to the root of our seedbox/LINUX system, and then follow the tutorial we already used, including creating a token to grant access, and then it should work.)

Thank you!

Will try it later, when I am back at my personel computer and putty.

("One version to rule them all")

Oh, yes, it should be like that, but this repository does not sadly include the merge requests as quickly as it should.

And as for the links, sorry for my laziness, passing a link to a Google Drive folder is much easier than linking all versions individually...

You deserve a bit of laziness!
And us noobs need the "learning by fooling around" so that we can evolve.. So all is good!

Alas the files at https://drive.google.com/drive/folders/12GSQhLLdKDdKzq_a-7WOrip5HnFmm1v9 appear to have been banned by google - 'Sign in with Google temporarily disabled for this app'

Workarounds involve recompiling it which really isn't an option in this case.

I am aware of that, this is sadly caused by a rather new change to Google APIs, will try to authorize the app in next week.

I use @petrpulc commit, but changed two things:

  • SupportsTeamDrives is deprecated, so use SupportsAllDrives
  • some calls didnt use SupportsAllDrives

here is the commits: https://github.com/Elbandi/gdrive/compare/06e9562c52fd4a06209da206b5b72067702fbf41...Elbandi:ff5def1a5ec210cd6e09a0f845710c6ab08ac3a3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikeyfev1 picture mikeyfev1  Â·  4Comments

unim21 picture unim21  Â·  4Comments

loctong picture loctong  Â·  4Comments

GaryFurash picture GaryFurash  Â·  3Comments

skyuuka picture skyuuka  Â·  4Comments