May 27, 2026

Can you duplicate a folder in Google Drive?

Reading time :  
8
 min
Aymeric Zhuo
Aymeric Zhuo

Can you duplicate a folder in Google Drive? Yes — here is every method

Google Drive does not have a "Duplicate Folder" button. You can duplicate individual files, but duplicating an entire folder — with subfolders, files, and permissions intact — requires workarounds. This missing feature has frustrated users since Drive launched, and Google has not addressed it despite years of feedback in the Google Workspace feedback forum.

A 2025 Statista report estimates Google Drive has over 2 billion active users. Yet this basic operation remains manual for most of them. On CodeWords, you can duplicate any Google Drive folder — including deep subfolder trees and shared permissions — with a single workflow command.

Unlike generic AI automation posts, this guide shows real CodeWords workflows — not just theory. You will learn manual methods, Apps Script automation, and AI-powered approaches that handle the edge cases Google's UI ignores.

TL;DR

  • Google Drive has no native folder duplication feature. You must copy files individually, use a third-party tool, write Apps Script, or use an automation platform.
  • Apps Script can recursively copy folders but requires coding and has execution time limits (6 minutes for free accounts).
  • CodeWords automates the entire process — deep copy, permissions, and metadata — through its Google Drive integration.

Why can't you just duplicate a folder in Google Drive?

Google Drive treats folders as labels, not containers. Internally, a "folder" is a metadata tag on files — not a directory in the traditional filesystem sense. This architectural choice, documented in the Google Drive API reference, means there is no single operation to copy a folder and everything inside it.

You can: - Copy individual files: Right-click → Make a copy. Works for one file at a time. - Select multiple files: Shift-click to select, then right-click → Make a copy. Creates copies in the same folder with "Copy of" prefixes. - Download and re-upload: Download the folder as a zip, then upload to a new location. Loses sharing permissions, comments, and version history.

None of these duplicate the folder structure. A folder with 10 subfolders and 200 files requires tedious manual work — or automation.

How do you duplicate a Google Drive folder manually?

The manual method works for small folders. Here is the step-by-step:

  1. Create the destination folder. In Google Drive, click New → Folder. Name it to match the original.
  2. Recreate the subfolder structure. Open the source folder and manually create matching subfolders in the destination. For nested structures, work top-down.
  3. Copy files into each subfolder. Open the source subfolder, select all files (Ctrl+A), right-click → Make a copy. Move the copies to the corresponding destination subfolder.
  4. Rename copied files. Each copy gets a "Copy of" prefix. Select all, right-click → Rename to remove the prefix. (Google added batch rename in 2024.)
  5. Restore sharing permissions. Copies do not inherit the original's sharing settings. Right-click each file or folder → Share → add the same people.

This method is tolerable for a folder with 5 files. It is impractical for project templates, client onboarding folders, or documentation trees with dozens of subfolders. According to Google Workspace admin documentation (2025), the average Workspace organization has over 2TB of Drive data across thousands of shared folders.

How do you duplicate a folder with Google Apps Script?

Apps Script automates the recursive copy. Here is a working script:

function duplicateFolder(sourceFolderId, destinationParentId) {
  var source = DriveApp.getFolderById(sourceFolderId);
  var destParent = DriveApp.getFolderById(destinationParentId);
  var newFolder = destParent.createFolder(source.getName() + " (Copy)");

  var files = source.getFiles();
  while (files.hasNext()) {
    var file = files.next();
    file.makeCopy(file.getName(), newFolder);
  }

  var subfolders = source.getFolders();
  while (subfolders.hasNext()) {
    var subfolder = subfolders.next();
    duplicateFolder(subfolder.getId(), newFolder.getId());
  }
}

To use it: 1. Open script.google.com. 2. Paste the script. 3. Replace the folder IDs with your source and destination. 4. Run the function.

Limitations: - 6-minute execution limit on free Google accounts (30 minutes on Workspace). Large folders time out. - No permission copying. The script creates files owned by you. Original sharing settings are lost. - No progress tracking. If the script fails mid-copy, you get a partial duplicate with no indication of what was missed. - Google Sheets and Docs lose comments when copied via makeCopy().

For folders under 100 files, this works fine. For anything larger, you need a more resilient approach.

How do you automate folder duplication with CodeWords?

CodeWords handles Drive folder duplication as a workflow — with progress tracking, error handling, and permission preservation.

The process:

  1. Connect Google Drive through the integrations page.
  2. Tell Cody what you need: "Duplicate the 'Client Template' folder in my Drive. Keep the subfolder structure and copy all sharing permissions."
  3. Cody builds the workflow: A FastAPI microservice uses the Google Drive API to recursively copy the folder tree. Unlike Apps Script, the CodeWords ephemeral sandbox has no 6-minute time limit.
  4. Permissions handling: The workflow reads sharing permissions from each source file and applies them to the copy. Editors stay editors, viewers stay viewers.
  5. Progress and error reporting: The workflow logs every file copied and reports failures. Partial copies are flagged, not hidden.

This is particularly valuable for repeatable processes:

  • Client onboarding: Duplicate a template folder for every new client, pre-populated with contracts, project plans, and shared with the client's email.
  • Project kickoff: Copy a project template with task lists, documentation structures, and team permissions.
  • Content production: Duplicate a content calendar template with asset folders, drafts subfolders, and approval workflows.

Each of these can be triggered via Slack command, a scheduled job, or a webhook from your CRM.

What about third-party tools for folder duplication?

Several tools address this gap:

  • MultCloud: Web-based tool that copies between cloud services. Free tier limited to 5GB/month. No API access for automation.
  • Google Takeout: Exports your entire Drive or specific folders as a zip. Does not duplicate within Drive — only exports.
  • rclone: Open-source command-line tool. rclone copy remote:source remote:dest handles folder trees. Requires local setup and Google API credentials. Powerful but not automated — you run it manually.
  • Zapier: Can copy individual files on triggers but lacks recursive folder duplication. No native subfolder traversal.
  • Make: Similar to Zapier — file-level operations only. Building recursive folder copy requires complex module chains.
  • CodeWords: Full Python execution environment with Google Drive API access. Recursive copy with permission handling, no file count limits, and integration with 500+ other services.

The distinction is between tools that copy files one at a time (Zapier, Make) and platforms that execute code capable of recursive operations (rclone, CodeWords). Folder duplication is inherently recursive — the tool needs to handle arbitrary depth.

How do you preserve permissions when duplicating?

Permission preservation is the hard part. Google Drive's permissions model has several layers:

  • Inherited permissions: Files in a shared folder inherit the folder's sharing settings. Copies do not inherit from the source — they inherit from the destination.
  • Direct permissions: Permissions set on individual files. These must be explicitly copied via the Drive API's permissions.create endpoint.
  • Link sharing settings: "Anyone with the link can view/edit." These are per-file settings that must be read and replicated.

A proper duplication workflow:

  1. Copy the folder structure.
  2. Copy each file.
  3. Read permissions from each source file using permissions.list.
  4. Apply matching permissions to each copy using permissions.create.
  5. Handle edge cases: owner cannot be changed (copies are owned by the copier), and some permission types (domain-wide sharing) require admin access.

On CodeWords, this logic runs as a single workflow. The platform's Google Drive integration handles API authentication, and the Python microservice handles the recursive logic. Results can be logged to Google Sheets or Airtable for audit trails.

FAQs

Does Google plan to add native folder duplication? As of 2025, Google has not announced this feature. The Google Workspace feature request tracker shows it as a highly requested item, but no timeline has been published.

Can I duplicate a folder across Google accounts? Not directly. You need to share the source folder with the destination account, then copy from that account. Alternatively, use CodeWords with credentials for both accounts to automate cross-account copying.

Will duplicating a large folder exceed my Drive storage quota? Yes. Copies count toward your storage. Google Workspace provides 30GB (free) to 5TB+ (paid plans) per user. Check your quota before duplicating large folders. Files that are Google-native (Docs, Sheets, Slides) do not count toward quota if under certain size limits.

How long does automated folder duplication take? It depends on file count and size. The Google Drive API allows batch requests, and CodeWords executes copies in parallel where possible. A folder with 500 files typically completes in under 5 minutes.

Duplication is a workflow, not a feature

The absence of a "Duplicate Folder" button in Google Drive is a reminder that consumer tools optimize for the common case, not the operational case. Builders who need repeatable folder structures — for clients, projects, or templates — need automation, not a better right-click menu.

Build the folder duplication workflow that fits your process on CodeWords. Whether it is triggered by a Slack command, a CRM event, or a schedule, the platform handles the recursive copy so you handle the work that goes inside those folders.

Contents
Ready to try CodeWords?
Get started free
Sign in
Sign in