Templates / Google Drive workflow with nested folder support

Google Drive workflow with nested folder support

Ready for 3.0

by Zain Ali ✓ · 295 views · created 2025-07-23 · File Management

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 11 nodes and runs when another workflow calls it. Along the way it connects Google Drive.

How it runs

Trigger: When another workflow calls it.

  1. Get children folders from folder id (Google Drive): uses Google Drive
  2. If: checks a condition and branches into true / false
  3. Start sub-execution (Execute Sub-workflow): calls another n8n workflow
  4. If: checks a condition and branches into true / false
  5. Get all folder ids (Code): runs custom JavaScript code
  6. Return parent folder id (Edit Fields (Set)): sets or maps fields
  7. Return parent folder id to sub-workflow (Edit Fields (Set)): sets or maps fields
  8. Loop Over folder ids (Loop Over Items (Split in Batches)): loops over the items in batches
  9. Return all file ids (Edit Fields (Set)): sets or maps fields
  10. Get all files inside a folder (Google Drive): uses Google Drive

Services it uses

Google Drive

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

From the author

👤 Who’s it for - Anyone who needs to recursively fetch all files from a specific Google Drive folder, including files inside all its nested (child) folders. - Ideal for automation builders, admins, and integrators who want to process, move, list, or report…

Excerpt from Zain Ali's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.