You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe this is not PyDrive2 specific issue, but I would like to see an example of how to deal with files having mimeType = 'application/vnd.google-apps.shortcut'
I am trying to process (copy) a list of Gdrive files, but one of them is a shortcut to another file.
In Gdrive UI, clicking on a shortcut file opens the target file.
But in PyDrive2, when looking at the shortcut file properties, I don't know where to find the target file id.
I saw in this SO post that there should be a shortcutDetails property in those files:
Those files have an addition field called: 'shortcutDetails'. It's look like this:
'shortcutDetails': {'targetId': SOME_ID, 'targetMimeType': SOME_MIMETYPE}
But I am not finding any of that information in PyDrive2 returned info.
Any hints?
Thanks a lot in advance
PS - I am not needing the following by now, but a related question would be: how to create a shortcut file using PyDrive2?
The text was updated successfully, but these errors were encountered:
abubelinha
changed the title
deal with Google Drive shortcuts - missing info in PyDrive2 ?
create shortcut
Jul 26, 2022
So I recycle the issue and change its title to "how to create shortcut files", just in case anybody else is interested.
But probably, that is not a PyDrive2 issue at all (just a general Gdrive API question). So I'll close the issue as well.
For reference, some info here I still didn't try myself using PyDrive2:
Maybe this is not PyDrive2 specific issue, but I would like to see an example of how to deal with files having
mimeType = 'application/vnd.google-apps.shortcut'
I am trying to process (copy) a list of Gdrive files, but one of them is a shortcut to another file.
In Gdrive UI, clicking on a shortcut file opens the target file.
But in PyDrive2, when looking at the shortcut file properties, I don't know where to find the target file id.
I saw in this SO post that there should be a
shortcutDetails
property in those files:But I am not finding any of that information in PyDrive2 returned info.
Any hints?
Thanks a lot in advance
PS - I am not needing the following by now, but a related question would be: how to create a shortcut file using PyDrive2?
The text was updated successfully, but these errors were encountered: