Open simone-viozzi opened 1 year ago
I don't think PyDrive2 currently supports this functionality automatically, but it would be great if it did. Having a method like this on GoogleDriveFile would be super helpful as a start:
def FollowShortcut(self):
if self["mimeType"] == "application/vnd.google-apps.shortcut":
self.FetchMetadata(fields="shortcutDetails")
return GoogleDriveFile(self.auth, {"id": gdrive_file["shortcutDetails"]["targetId"]})
else:
return self
Hi, does
GDriveFileSystem
support manipulation of files in theshared with me folder
? Like copy from my drive to a folder shared with me.If not, I can create a shortcut in my drive and use the shortcut as path for the file / folder?
From the tries I have done, the second option doesn't work,
GDriveFileSystem
does not take care of getting thetargetId
of the shortcut etc..I would like shortcut to be transparent proxies to the real file / folder, so that for example
ls
on the shortcut of a folder give me the content of it. Things get complicated with other methods like:Reference: