Create Google Drive folders by path
Ready for 3.0Ready 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-10-19.
What this workflow does
This workflow has 11 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Google Drive.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Dummy input data (Edit Fields (Set)): sets 2 fields: google_drive_folder_id, desired_path
- Split the desired path (Code): runs custom JavaScript code
- Create desired path (Code): runs custom JavaScript code
- Check if top folder exists (Google Drive): work with file folder
- If: checks a condition and branches into true / false
- Create new subfolder (Google Drive): work with folder
- Set parameters for next run (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Return the ID of the last folder (Edit Fields (Set)): sets 1 field: google_drive_folder_id
Services it uses
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.
Nodes used (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - If
n8n-nodes-base.if
From the author
This workflow creates nested Google Drive folders from a path string (like Projects/Clients/Reports). It automatically handles the necessary folder lookups and creation steps required by Google Drive, then outputs the final folder's ID for immediate use. How…