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
Without this option, the Google Drive API will return 404 File not found if you're trying to access a Shared Drive from a different domain, EVEN IF THEY add your service account email to the shared list of people/members or as a member of the drive.
I think basically adding supportsAllDrives and includeItemsFromAllDrives to the Options and plumbing them through should be enough, I tried to get this done in a fork, but i can't get typescript to work correctly, I think it's making wayyy more changes to them than needed, i will just share the 3 changes that I made in case someone else needs them or can get them merged properly
Without this option, the Google Drive API will return 404 File not found if you're trying to access a Shared Drive from a different domain, EVEN IF THEY add your service account email to the shared list of people/members or as a member of the drive.
https://developers.google.com/drive/api/guides/enable-shareddrives
I think basically adding supportsAllDrives and includeItemsFromAllDrives to the Options and plumbing them through should be enough, I tried to get this done in a fork, but i can't get typescript to work correctly, I think it's making wayyy more changes to them than needed, i will just share the 3 changes that I made in case someone else needs them or can get them merged properly
Added to the
IOptions
interfacehttps://github.com/drschoice/sync-gdrive/blob/44489638917c9deabb92e208bbcacabe91527b3a/src/interfaces/IOptions.ts#L12-L13
Added to the
drive.files.list
call invisitDirectory
https://github.com/drschoice/sync-gdrive/blob/44489638917c9deabb92e208bbcacabe91527b3a/src/index.ts#L270-L271
Added to the
drive.files.get
call infetchContents
https://github.com/drschoice/sync-gdrive/blob/44489638917c9deabb92e208bbcacabe91527b3a/src/index.ts#L318
Usage
Thank you
The text was updated successfully, but these errors were encountered: