Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info about query for files and wrap some lines #147

Merged
merged 3 commits into from
Oct 4, 2021

Conversation

tmotyl
Copy link
Contributor

@tmotyl tmotyl commented Sep 29, 2021

No description provided.

Create `GoogleDriveFileList`_ instance with `parameters of Files.list()`_ as ``dict``. Call `GetList()`_ and you will get all files that matches your query as a list of `GoogleDriveFile`_.
Create `GoogleDriveFileList`_ instance with `parameters of Files.list()`_ as ``dict``.
Call `GetList()`_ and you will get all files that matches your query as a list of `GoogleDriveFile`_.
The syntax and possible option of the query ('q') parameter can be found in `search for files` Google documentation.
Copy link
Member

Choose a reason for hiding this comment

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

should it be q?

Copy link
Member

Choose a reason for hiding this comment

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

I mean backquotes or double backquotes to highlight it properly

@@ -24,7 +26,9 @@ You can update metadata or content of these `GoogleDriveFile`_ instances if you
Paginate and iterate through files
----------------------------------

*PyDrive* provides Pythonic way of paginating and iterating through list of files. All you have to do is to limit number of results with ``maxResults`` parameter and build ``for`` loop retrieving file list from API each iteration.
*PyDrive* provides Pythonic way of paginating and iterating through list of files.
All you have to do is to limit number of results with ``maxResults`` parameter and build ``for`` loop retrieving
Copy link
Member

Choose a reason for hiding this comment

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

Let's change the style a bit, please. Something like this should be better:

Here is an example how to do this, maxResults below defines how many files it retrieves at once and we wrap it into a for loop to iterate:

@tmotyl
Copy link
Contributor Author

tmotyl commented Oct 4, 2021

@shcheklein I've fixed the wording and resolved conflict

@shcheklein
Copy link
Member

thanks @tmotyl !

@shcheklein shcheklein merged commit 37c5668 into iterative:master Oct 4, 2021
@shcheklein
Copy link
Member

shcheklein commented Oct 4, 2021

I'll release the new version of docs when/if we merge the #148

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.

2 participants