This n8n workflow automates the creation of nested folders in Google Drive based on a specified path string. When triggered, it takes a desired folder path (e.g., “Projects/Clients/Reports”), splits it into its components, and then checks if each folder exists at the proper level within a designated parent folder (or root). If a folder does not exist, the workflow creates it, ensuring the entire hierarchy is established accurately. The process repeats for each subfolder in the path, creating missing folders one by one. Once complete, it returns the ID of the last created (or existing) folder, enabling seamless integration with other workflows, such as uploading files directly into that folder.
Automated Google Drive Folder Creation by Path
Node Count | 11 – 20 Nodes |
---|---|
Nodes Used | code, executeWorkflowTrigger, googleDrive, if, manualTrigger, set, stickyNote |
Reviews
There are no reviews yet.