vitalif / grive2

Google Drive client with support for new Drive REST API and partial sync
http://yourcmc.ru/wiki/Grive2
GNU General Public License v2.0
1.52k stars 141 forks source link

drive shortcut not supported #315

Open onokatio opened 4 years ago

onokatio commented 4 years ago

https://cloud.google.com/blog/products/g-suite/simplifying-google-drives-folder-structure-and-sharing-models

Accroding to this, Add to My Drive feature was deprecated and now Drive shortcut is rolling out.

Grive doesn't recognize Drive shortcut so the directory disapper at local.

onokatio commented 4 years ago

If you want use Add to My Drive, use SHIFT + Z.

Detail: https://support.google.com/drive/answer/9700156

ohhai commented 3 years ago

Thanks for the link regarding shift+z! It's the only case for me, but it doesn't work for some reason - I get "server encountered an error, try again later" after it.

I want to download entire folder shared with me, without copying every file to my drive. Seems like not possible for now.

Tatsh commented 3 years ago

@vitalif if you want to implement this feature, shortcuts require a change to code that will be enforced on 13 Sept 2021.

From Google:

What do I need to do?

To avoid errors accessing files, you must update your code for accessing files to include the appropriate resource keys. Details on how to do this for each of the affected Drive APIs is included below:

Changes to the Drive API

The resource key of an item is returned on the resourceKey field of the file metadata in the Drive API response.

If the file is a shortcut file, then the resource key for the target of the shortcut can be read from the shortcutDetails.targetResourceKey field of the same resource. URL type fields such as exportLinks, webContentLink, and webViewLink will include the resourceKey. Requests to the Drive API can specify one or more resource keys with the X-Goog-Drive-Resource-Keys HTTP request header. Learn more about this change from the Drive API guide.

CyberTailor commented 2 years ago

SHIFT+Z creates shortcut too now, so there's no more "Add to My Drive" feature

nick-robo commented 2 years ago

Would it be possible to sync through the link?