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
{{ message }}
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
The Handling Special Metadata section of the docs highlights the following use case of the FetchMetadata() function:
file1 = drive.CreateFile({'id': '<some file ID here>'})
# Fetches all basic metadata fields, including file size, last modified etc.
file1.FetchMetadata()
However, this does not work if file1 is a shared drive. When file1 is a shared drive,
returns a GoogleDriveFile object with blank metadata (i.e. no 'id' field). Therefore, when file_id = self.metadata.get('id') or self.get('id')
is executed in the FetchMetadata function, file_id is None and FileNotUploadedError() is raised.
This error propagates into other functions that call FetchMetadata (e.g. GetPermissions()).
The text was updated successfully, but these errors were encountered:
The Handling Special Metadata section of the docs highlights the following use case of the FetchMetadata() function:
However, this does not work if file1 is a shared drive. When file1 is a shared drive,
returns a GoogleDriveFile object with blank metadata (i.e. no 'id' field). Therefore, when
file_id = self.metadata.get('id') or self.get('id')
is executed in the FetchMetadata function, file_id is None and FileNotUploadedError() is raised.
This error propagates into other functions that call FetchMetadata (e.g. GetPermissions()).
The text was updated successfully, but these errors were encountered: