πŸ“„

Folder Index Generator

Scan a massive folder structure and generate an Excel inventory (Name, Link, Size, Date) of every file inside.

Document ⭐ Beginner ⏱️ 3 minutes

😫 The Pain Point

You have a hard drive from 2010 with 10,000 nested files. You need to know what’s in there without clicking through every folder. Or your Boss: β€œGive me a list of all contracts on the server.”

πŸš€ Agentic Solution

Drive Crawler: Recursively walks through every subfolder and logs file details into Excel.

Key Features:

  • Hyperlinks: Clicking the filename in Excel opens the actual file.
  • Tree View: Flattens a deep structure into a readable list.

βš”οΈ Phase 1: Commander (Quick Fix)

For a quick lookup list.

Prompt:

β€œList all files in the current directory and subdirectories. Save the Filename, Path, and Size to File_Index.csv.”

Result: A CSV inventory.

πŸ—οΈ Phase 2: Architect (Permanent Tool)

For IT Admins.

Engineering Prompt:

**Role:** Python Utils Developer
**Task:** Create a "directory To Excel Indexer".
**Requirements:**
1.  **GUI:**
    *   Select Target Folder.
    *   "Generate Index" button.
2.  **Logic:**
    *   Walk directory using `os.walk`.
    *   Collect: Name, Extension, Size (MB), Created Date, Path.
    *   **Feature:** Create Excel Hyperlinks (`=HYPERLINK(path, name)`).
    *   Save as `.xlsx` using Pandas.
3.  **Deliverables:** `folder_indexer.py`, `run.bat` (Windows), `run.sh` (Mac).

🧠 Prompt Decoding

  • Hyperlink: Making the Excel β€œClickable” transforms dead data into a live dashboard. Just merging the text path isn’t enough; using the Excel formula functionality creates a superior UX.

πŸ› οΈ Instructions

  1. Copy Prompt -> Paste -> Run.
  2. Select Drive/Folder -> Generate.

Related Workflows

Explore other categories

πŸ“¬

Get Started with Agentic Working

Subscribe to receive updates from AgenticWorking.io

πŸ“– Free eBook Guide πŸ“¦ 7 Ready-to-use Scripts πŸ”” Weekly Tips

No spam, unsubscribe anytime. Join 1,000+ subscribers.