prasmussen / gdrive

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

Cannot access Shared Drive - Failed to get file: googleapi: Error 404: File not found: XYZ123., notFound #623

Open dvlancer opened 2 years ago

dvlancer commented 2 years ago

I can list files and folders in My Drive using gdrive list and get info using gdrive info XZY123, but running gdrive info XZY123 on a file or folder located in Shared Drive produces error: Failed to get file: googleapi: Error 404: File not found: XYZ123., notFound

image

amineRemmache commented 2 years ago

any solutions ? i'm facing the same issue.

rgbysgt commented 2 years ago

drives.list is a separate method from files.list ref: https://developers.google.com/drive/api/v3/reference/drives/list

It does not appear as though this method has been implemented yet in this project.

jonathanelscpt commented 2 years ago

hitting this as well. so frustrating, this looked like an awesome utility.

philwilkes commented 2 years ago

I have two versions on different machines.

This version I can upload to a shared dir

gdrive: 2.1.0 Golang: go1.7.4 OS/Arch: linux/amd64

This version

gdrive: 2.1.1 Golang: go1.11.13 OS/Arch: linux/386

I get the error when copying to the same directory

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

bdodds commented 2 years ago

Another vote for this issue, downloading from a shared location is exactly what I need to do, but can't. Haven't found any good workarounds.

ricardovalenca commented 2 years ago

I really need this feature to collect data from workspace admin shared folder. I just loved this app. Without this function, its just a user tool. With this feature it can have lots of server utilities.

tomhalex commented 2 years ago

+1 on this

bipin-lekhak commented 2 years ago

+1

Russtopia commented 2 years ago

+1 Also would benefit greatly from this. I posted a workaround using a helper Google App Script here, but not ideal.

Hope this helps @jonathanelscpt @philwilkes @bdodds @ricardovalenca @tomhalex @bipin-lekhak

Basically use gdrive to push/pull from "My Drive", then the Google App Script watches that folder and copies/moves to or from the final Shared Drive location.

IreneTallini commented 2 years ago

+1