Skip to main content

Copy folder structure without files in Google Drive

Workflow preview

Workflow preview
100%
Copy folder structure without files in Google Drive preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Why? Google Drive desktop lets you copy full folders—contents and all. But what if you only want to copy the folder names (not the files) from one drive location to another? Maybe you're reusing a ...

Best for

  • File Management automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.googledrive, n8n-nodes-base.stickynote, n8n-nodes-base.splitinbatches, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.merge

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Builds.Cool.

Original n8n.io source

1.1 Workflow description

Title
Copy folder structure without files in Google Drive
Workflow name
Copy folder structure without files in Google Drive

Why?

Google Drive desktop lets you copy full folders—contents and all. But what if you only want to copy the folder names (not the files) from one drive location to another? Maybe you're reusing a folder structure or duplicating a template structure, but without this workflow each copy will hold different content. This n8n workflow helps you clone just the structure—no clutter, no file duplicates.

How it works

  1. Load this workflow into your n8n instance
  2. Setup GDRIVE credentials if you have not already (see video below)
  3. Double-click "edit this node"
  4. Enter the SOURCE folder ID (into "EDIT_THIS_NODE") - see image on where to get folder ID
  5. Enter the DESTINATION folder ID
  6. Run the workflow

What it does

  • Creates all new folders in destination that were in the source folder
  • Skips folders in destination that already exist

What it doesn't do (yet)

  • Does not copy over any nested folders
  • Does not copy over any files

Requirements

Future Updates

If I get requests for these features I would build them:

  • Copy nested folder structure within the destination drive.
  • Flag (on/off) - to copy nested folder structure
  • Better error handling
  • Some kind of feedback output log on what was created

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Get_Folders_SOURCE

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 3 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 6 - EDIT_THIS_NODE

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Create Folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 1

Block 8 - Check if folder exists

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - If exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 10 - Get_Folders_DESTINATION

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 11 - Set Destination Names

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Merge_Folder_Context

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

3. Summary Table

Workflow Copy folder structure without files in Google Drive
Complexity intermediate
Nodes 12
Categories File Management
Author Builds.Cool
Published 20 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4240/4240.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Copy folder structure without files in Google Drive do?

Why? Google Drive desktop lets you copy full folders—contents and all. But what if you only want to copy the folder names (not the files) from one drive location to another? Maybe you're reusing a ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your File Management use case.