Replicate Google Drive folder structures quickly using this powerful n8n workflow. Use this n8n template to copy folder hierarchies without files, ideal for new project setups.
Download this n8n workflow template and start using it instantly.
Manually recreating complex folder structures in Google Drive is tedious and error-prone. This specialized n8n workflow solves that problem by automatically identifying the hierarchy of folders in a source location and recreating them in a designated destination folder. Unlike standard copying methods, this n8n workflow ensures that only the structural elements are transferred, saving time, bandwidth, and ensuring the destination folder starts clean. This particular n8n workflow uses robust core logic to check for existing folders before creation, preventing duplicates and ensuring idempotent execution. It is one of the most useful n8n templates for cloud storage management.
The process begins with a manual n8n trigger, allowing the user to initiate the replication on demand.
EDITTHISNODE (a Set n8n node) where the user defines the IDs for the Source and Destination parent folders.GetFoldersDESTINATION) to understand the current structure or if it is empty.GetFoldersSOURCE) recursively retrieves the entire folder structure (name, ID, parent IDs) from the specified source folder.Loop Over Items n8n node then processes each retrieved folder individually.Check if folder exists) executes custom logic to determine if a folder with the identical name already exists within the corresponding location in the destination structure. This ensures the n8n template is efficient and avoids API throttling.If exists) evaluates the check. If the folder does not exist, the flow proceeds to the final step.Create Folder) creates the new folder in the target destination, ensuring the full hierarchical path is maintained based on the source metadata. The n8n workflow then loops back to process the next item until the entire source structure is replicated.To use this n8n workflow, follow these steps:
GetFoldersSOURCE) and connect it to your Google account.EDITTHISNODE (Set n8n node). You must edit its parameters to define the Google Drive IDs for:sourcefolderid: The ID of the folder you wish to copy the structure from.destinationfolderid: The ID of the parent folder where the new structure will be created.When clicking ‘Test workflow’ n8n trigger to run a test execution. Once verified, you can set up a scheduled n8n trigger if desired, though this template is best suited for manual execution. When clicking ‘Test workflow’ (Manual Trigger): Serves as the initial n8n trigger to manually start the process. Essential for testing and on-demand use.
EDITTHISNODE (Set n8n node): Critical configuration step. Used to securely define and pass the sourcefolderid and destinationfolderid for the Google Drive operations.
GetFoldersDESTINATION & GetFoldersSOURCE (Google Drive n8n node): These nodes utilize the Google Drive API to recursively list all folders (but not files) within the defined source and destination paths, gathering the necessary metadata for replication.
Loop Over Items (Split In Batches n8n node): This flow control n8n node iterates through the list of folders retrieved from the source, allowing subsequent nodes to process each folder path individually.
Check if folder exists (Code n8n node): A custom n8n node implementing specific JavaScript logic to compare the incoming folder path against the existing destination paths to prevent the creation of duplicate folders. This is key to the workflow's reliability.
If exists (If n8n node): Directs the flow based on the output of the Code n8n node. Only if the folder does not exist does the flow continue to the creation step.
Automatically convert n8n tags into dedicated n8n folders and move all associated n8n workflow assets using the n8n API. Streamline your n8n organization with this comprehensive n8n template.

Use this advanced n8n workflow to automate image processing. Triggered by Telegram, it uses the OpenAI API for image editing and Replicate for generating creative variations, offering powerful n8n templates for creative projects.

Use this powerful n8n workflow to convert, merge, and generate PDFs and barcodes via Api2Pdf. This n8n template acts as an AI tool server using the MCP trigger, automating complex document tasks.

Use this powerful n8n workflow to automatically scrape viral Instagram Reels via Apify, analyze the video structure and content using Gemini AI, and save actionable replication guidelines in Airtable. Automate your content strategy with n8n.

Use this powerful n8n workflow to automatically detect copyright infringement using ScrapeGraphAI, analyze risk, and trigger urgent legal alerts via Telegram. Leverage n8n templates for brand protection.








































