Google Drive Recursive icon

Google Drive Recursive

Recursively builds a folder tree from Google Drive with flexible output modes

Tree (Folder/File Structure)

AI-generated

Summary

Recursively scans the selected Google Drive folder and its subfolders, then returns matching items as a nested folder tree. Use the required Folder selector or enter a folder ID; optional filters and metadata settings control which items and fields appear.

Inputs

  • Folder (required) — Choose a folder from the list or provide its ID; defaults to My Drive (root). The operation scans its descendants.
  • Filters — Optionally select MIME types and add property key/value filters. When multiple property filters are provided, items must match all valid filters. Folders are excluded from the tree by default unless the Folder MIME type is selected.
  • Options — Choose metadata fields to request, which public or app properties to include, and whether to include sharing permissions. The operation also requests parent IDs to build the hierarchy. A Google Drive query string is exposed in the UI, but the source does not apply it.

Output shape

A single n8n item containing a nested folder tree in its JSON data.

Each node has id, name, mimeType, and children, with selected custom properties, app properties, or permissions when available. The selected folder is the root when it appears among the filtered results; otherwise the result uses a virtual (root) node with matching top-level children. This operation reads Drive data and does not modify it.

Links

Discussion