Skip to content
This repository was archived by the owner on Jul 22, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions pydrive/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ def _GetList(self):
self['corpus'] = 'DEFAULT'
self['supportsTeamDrives'] = True
self['includeTeamDriveItems'] = True

self.metadata = self.auth.service.files().list(**dict(self)).execute(
http=self.http)
try:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Maxris let's merge this into PyDrive2 and release a new version?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Maxris iterative/PyDrive2#5 please take a look at this one.

Copy link
Author

@maxhora maxhora Jan 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shcheklein cool, thanks for merging!

self.metadata = self.auth.service.files().list(**dict(self)).execute(
http=self.http)
except errors.HttpError as error:
raise ApiRequestError(error)

result = []
for file_metadata in self.metadata['items']:
Expand Down