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
I ran into the exact same issue with Team Drive. Please help!
Try
gdrive upload --parent 0B_XXXXXXXXXXXXXXXXXXXX --name file ./file
@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?
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?
@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.
Came here for the same issue. Clues?
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.
Following, Facing similar issue with one of my apps.
Same issue here ! Maybe it's not the right ID ?
I was able to fix it by granting the permissions again and updating the ID.
@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
Check out https://github.com/petrpulc/gdrive/ where I just added team drive support (or #409)
@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
Most helpful comment
Check out https://github.com/petrpulc/gdrive/ where I just added team drive support (or #409)