File size: 1,401 Bytes
1e6a411 585f95d 1e6a411 b879cd2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | ---
title: File And Directory Inspection
emoji: 🧪
colorFrom: yellow
colorTo: red
sdk: gradio
sdk_version: 5.35.0
app_file: app.py
pinned: false
license: unlicense
---
# File Inspector Tool
The File Inspector is a Gradio-based web application for analyzing the contents of a local directory or ZIP archive. It can display the full folder structure, extract readable text and code files, and export the results in multiple formats.
## Features
- Supports both local directories and uploaded ZIP archives
- Displays full directory tree with size and timestamp information
- Extracts readable text/code content from supported files
- Supports syntax highlighting for common programming languages
- Allows export to multiple formats:
- TXT (plain text)
- JSON / JSONL
- YAML
- Markdown
- CSV / TSV
- HTML
## How to Use
1. Choose the input source:
- Local Path: enter a directory path
- Upload ZIP: upload a `.zip` file
2. Select the desired action:
- Display Tree
- Extract Code
- Display Tree + Extract Code
3. Choose an export format
4. Click "Run" to process the files
5. View the output and download the result
## Installation (Local Use)
To run this tool locally, install the required dependencies and start the app:
```bash
pip install gradio pyyaml
python app.py
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference |