Skip to content

Conversation

@whatthecloud
Copy link

The current Google Drive backup code does not allow for a folder that is stored on a Workspace Shared Drive.

Currently, if a Shared Drive Folder ID is specified, the following errors are thrown.

Error creating folder: <HttpError 404 when requesting https://www.googleapis.com/drive/v3/files?fields=id&alt=json returned "File not found: <Folder ID>.". Details: "[{'message': 'File not found: <Folder ID>.', 'domain': 'global', 'reason': 'notFound', 'location': 'fileId', 'locationType': 'parameter'}]">
Error uploading to Google Drive: <HttpError 404 when requesting https://www.googleapis.com/drive/v3/files?fields=id&alt=json returned "File not found: <Folder ID>.". Details: "[{'message': 'File not found: <Folder ID>.', 'domain': 'global', 'reason': 'notFound', 'location': 'fileId', 'locationType': 'parameter'}]">

This can be enabled through the existing Google API Client library by adding the includeItemsFromAllDrives=True and supportsAllDrives=True parameters to the files().list method and adding the supportsAllDrives=True parameter to the files().create methods.

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant