Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Structured Copy: Files & Folders

seardnaschmidseardnaschmid892 downloads

Copy the contents of files and folders in a structured JSON format.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

The Recursive Item Copy plugin for Obsidian enhances your note-taking and organization experience by allowing you to easily copy the contents of files and folders in a structured JSON format. This plugin is particularly useful for:

  • Backing up specific parts of your vault
  • Sharing structured content with others
  • Analyzing the structure and content of your notes
  • Migrating content to other systems or applications

Features

  • Copy the contents of a single file, multiple files, or entire folder structures
  • Preserve the hierarchical structure of folders and files
  • Include file contents in the copied data
  • Output data in a clean, structured JSON format
  • Timestamp each copy operation for easy tracking
  • Remove duplicate entries when copying multiple items

How to Use

  1. Installation

    • Open Obsidian Settings
    • Go to "Community Plugins" and disable Safe Mode
    • Click "Browse" and search for "Recursive Item Copy"
    • Install the plugin and enable it
  2. Copying File or Folder Contents

    • Right-click on any file or folder in your Obsidian vault
    • In the context menu, click on "Copy Contents (Recursive)"
    • For multiple selections, use the "Copy Contents of Selected Items (Recursive)" option
    • The plugin will process the selected item(s) and copy the structured data to your clipboard
  3. Using the Copied Data

    • Paste the copied content into any text editor or application that accepts JSON
    • The copied data will include the full path of each item, its content (for files), and maintain the folder structure (for folders)

Output Format

The copied data is in JSON format and includes:

  • items: An array of copied files and folders
    • type: Either "file" or "folder"
    • path: The full path of the item in your vault
    • content: The content of the file (for file types)
  • timestamp: The date and time when the copy was made

Example output:

{
  "items": [
    {
      "type": "folder",
      "path": "Essen"
    },
    {
      "type": "file",
      "path": "Essen/Milchreis Rezept.md",
      "content": "# Der perfekte Milchreis - Grundrezept\n\n## Zutaten (für 4 Portionen):\n\n- 1 Liter Vollmilch, zimmerwarm\n- 250 g Milchreis\n..."
    },
    {
      "type": "file",
      "path": "Essen/Rhabarber Kuchen Rezept.md",
      "content": "### Zutaten\n\n#### Für die Streusel\n\n- 125 Gramm Butter kalt in Stückchen\n- 125 Gramm Weizenmehl\n..."
    }
  ],
  "timestamp": "2024-08-24T19:41:50.729Z"
}

Use Cases

  1. Backup: Quickly create a structured backup of specific parts of your vault.
  2. Sharing: Share a structured representation of your notes, including content and organization.
  3. Analysis: Use the JSON output to analyze the structure and content of your notes programmatically.
  4. Migration: Use the structured output to migrate your notes to other systems or applications.

Technical Details

The plugin is implemented in TypeScript and uses Obsidian's Plugin API. Key components include:

  • ItemType enum to distinguish between file and folder types
  • FileSystemItem interface to represent both files and folders
  • CopyInfo interface for the final copy information structure
  • Methods for handling file menu events, processing file contents, and managing folder structures

Feedback and Support

If you encounter any issues or have suggestions for improvements, please visit our GitHub repository [insert link here] to submit an issue or contribute to the project.

Enjoy recursive copying of your Obsidian content!

75%
HealthGood
ReviewSatisfactory
About
Copy files and folders recursively into a structured JSON representation, preserving folder hierarchy and including file contents and full paths. Include timestamps, remove duplicate entries across selections, and copy results to the clipboard for backup, sharing, or migration.
FilesExportJSON
Details
Current version
1.0.10
Last updated
Last year
Created
2 years ago
Updates
2 releases
Downloads
892
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
seardnaschmidseardnaschmid
github.com/SeardnaSchmid
GitHubseardnaschmid
  1. Community
  2. Plugins
  3. Files
  4. Structured Copy: Files & Folders

Related plugins

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Local REST API & MCP Server

Unlock your automation needs by interacting with your notes over a secure REST API.

QuickAdd

Quickly add new notes or content to your vault.

Recent Files

Display a list of recently opened files.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Image Converter

Convert, compress, resize, annotate, markup, draw, crop, rotate, flip, align, drag-resize, rename with variables, and batch process images: WEBP, JPG, PNG, HEIC, TIF

Text Extractor

A (companion) plugin to facilitate the extraction of text from images (OCR) and PDFs.

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

Advanced URI

Control everything with URI.