Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Upload To Google Team Drive Failed #318

Open
CyberLeopard opened this issue Jun 27, 2017 · 13 comments
Open

Upload To Google Team Drive Failed #318

CyberLeopard opened this issue Jun 27, 2017 · 13 comments

Comments

@CyberLeopard
Copy link

CyberLeopard commented Jun 27, 2017

Hello,

Team Drive is a feature of Google Drive. Seems gdrive don't work with Team Drive at present. This is what I got when I try to upload to a Team Drive folder:

gdrive upload --parent 0B_XXXXXXXXXXXXXXXXXXXX ./file
Failed to get file: googleapi: Error 404: File not found: 0B_XXXXXXXXXXXXXXXXXXXX., notFound

@prbs57
Copy link

prbs57 commented Aug 25, 2017

I ran into the exact same issue with Team Drive. Please help!

@pekatete
Copy link

Try
gdrive upload --parent 0B_XXXXXXXXXXXXXXXXXXXX --name file ./file

@prbs57
Copy link

prbs57 commented Sep 29, 2017

@pekatete, when I try to upload using that syntax:
gdrive upload --parent 0B<> --name tmp.sh ./tmp.sh
Failed to get file: googleapi: Error 404: File not found: 0B<>., notFound

gdrive mkdir -p 0B<> tempo
Failed to create directory: googleapi: Error 404: File not found: 0B<>., notFound

Are you able to work with team drive? Did you have to do any special setup or config/variable?

@pekatete
Copy link

pekatete commented Sep 30, 2017

You probably don't have permissions to write in the .gdrive directory (resides in your home directory on Linux) which is strange or you did not run the setup command before trying to upload (it sets up the .gdrive directory).
Did you run the first command as described in the README on the home page? Check if you have a directory named .gdrive

edit:
No have not used it with team drive, just personal google drive. Also about the File not found, can you try by providing the full path name (or simply the name of the file if you are invoking from the directory where the file resides)? e.g
gdrive upload --parent 0B<> --name tmp.sh /home/mine/tmp.sh
or
gdrive upload --parent 0B<> --name tmp.sh tmp.sh

Do you get the --parent value value via the ./gdrive list command just before invoking?

@prbs57
Copy link

prbs57 commented Oct 3, 2017

@pekatete, I have been using gdrive with regular google drive directory without a problem. It's only when I try to use team-drive that I run into the errors above.

During setup, we get to authenticate and 'allow' the app to access one's google drive. There doesn't seem to be any distinction between regular drive and team drive when at this step of authenticating. Wonder how it'll identify team drive.

@abelcallejo
Copy link

Came here for the same issue. Clues?

@russell-j
Copy link

russell-j commented Jun 21, 2018

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.

@UmeshSingla
Copy link

Following, Facing similar issue with one of my apps.

@petaire92
Copy link

Same issue here ! Maybe it's not the right ID ?

@UmeshSingla
Copy link

I was able to fix it by granting the permissions again and updating the ID.

@abelcallejo
Copy link

@UmeshSingla what do you mean by

granting the permissions again and updating the ID

Can you confirm you were able to make it work with Team Drive already?

Cheers

@petrpulc
Copy link

petrpulc commented Nov 1, 2018

Check out https://github.com/petrpulc/gdrive/ where I just added team drive support (or #409)

@BrennerSpear
Copy link

@UmeshSingla what do you mean by

granting the permissions again and updating the ID

Can you confirm you were able to make it work with Team Drive already?

Cheers

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants