> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.meetgail.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.meetgail.com/_mcp/server.

# Google Drive List Files

> Lists the files and folders in a Google Drive folder, with optional filters and sorting.

The List Files node looks inside a Google Drive folder and hands back the files
and folders it finds, with optional filters on name, type, and date. It is the
starting point for any workflow that needs to work through the contents of a
folder.

## When to use it

* You want to find the files in a folder before downloading or processing them.
* You need only files that match a pattern, a file type, or a date window.
* You want to loop over the results and act on each file in turn.

## Inputs

| Field           | What it's for                                                        | Example           |
| --------------- | -------------------------------------------------------------------- | ----------------- |
| Folder          | The Drive folder to look inside. Leave blank to use your main Drive. | `Monthly Reports` |
| Name contains   | Only return files whose name includes this text.                     | `renewal`         |
| File type       | Only return files of this type.                                      | `CSV`             |
| Modified after  | Only return files changed after this date and time.                  | `2026-01-01`      |
| Modified before | Only return files changed before this date and time.                 | `2026-02-01`      |
| Include folders | Whether to include subfolders in the results.                        | `false`           |
| Sort by         | Which field to order the results on, such as name or last modified.  | `Last modified`   |
| Page size       | How many entries to return, from 1 to 1000 (default 100).            | `25`              |

Any field can be a fixed value or an [expression](/platform/workflows/core-concepts/expressions/using-expressions-in-nodes)
that reads from an earlier step.

## Outputs

| Field          | What you get back                                                                             |
| -------------- | --------------------------------------------------------------------------------------------- |
| Entries        | The files and folders found, each with its name, id, file type, size, and last-modified time. |
| Count          | How many entries were returned.                                                               |
| More available | A flag that is true when more matches exist than were returned.                               |

## Example

Chen Insurance Group keeps a Drive folder of daily carrier reports. A workflow
runs each morning, uses List Files to find the CSV reports in that folder sorted
by newest first, then loops over the results with a
[For Each](/platform/workflows/node-reference/logic-and-flow/for-each) step to download and
process each one.

![The Google Drive List Files node configuration panel, showing the folder, filters, and sort order.](https://fdr-prod-docs-files-public.s3.us-east-1.amazonaws.com/gail.docs.buildwithfern.com/d98de33d3023220703d2494e053fb8b41983e7e5b32685f89966e9d94c9d28db/docs/pages/platform/workflows/assets/google-drive-list-files.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA6KXJSKKNFOCF7G4B%2F20260823%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260823T232947Z&X-Amz-Expires=604800&X-Amz-Signature=d663f26fc31e3bc2fc662b7bae0536f1eedefaaeefb43a50247418960f04d919&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

A single listing returns at most 1000 entries. If the "more available" flag
comes back true, there were more matches than fit in one page - narrow the
filter (by name, type, or date) and list again to be sure you catch everything.

## Related nodes

#### [Download File](/platform/workflows/node-reference/integrations/google-drive/google-drive-download-file)

Pull one of the listed files into the run.

#### [For Each](/platform/workflows/node-reference/logic-and-flow/for-each)

Loop over the returned entries and act on each file.

#### [Upload File](/platform/workflows/node-reference/integrations/google-drive/google-drive-upload-file)

Save a file back into a Drive folder.

#### [Check](/platform/workflows/node-reference/logic-and-flow/check)

Branch on whether more matches were available.