Skip to main content
googleDrive.listFiles search files with Google Drive query syntax.

Example

Inputs

Use query, orderBy, corpus, driveId, pageSize, and pageToken to narrow or page results. pageSize accepts 1 through 1,000. Providing driveId selects that shared drive’s corpus when you omit corpus. If you set corpus explicitly, provide driveId exactly when corpus is "drive". Trashed files are excluded unless includeTrashed is true. A second argument with account selects a Google Account.

Output

Returns files, incompleteSearch, and an optional nextPageToken. When incompleteSearch is true, Google could not search every requested corpus; narrow the corpus or retry the request.