AI 파일 트리를 붙여넣고 즉시 깔끔한 프로젝트를 얻으세요 (Tree2Zip)
Source: Dev.to
Overview
Tree2Zip은 LLM(예: ChatGPT)에서 출력된 파일‑트리 텍스트를 붙여넣기만 하면 깔끔하고 정상적인 .zip 아카이브를 즉시 다운로드할 수 있게 해줍니다.
AI에게서 프로젝트 구조를 복사한 뒤에
- 이상한 들여쓰기
- 깨진 중첩 구조
- 파일명에 포함된 인라인 주석
- 누락된 폴더
와 같은 문제를 겪어본 적이 있다면, 그 “깨끗한” 트리를 실제 프로젝트로 바꾸는 것이 얼마나 답답한지 아실 겁니다.
Tree2Zip은 이런 번거로움을 자동으로 처리해 줍니다.
How It Works
- Paste any file‑tree text (including symbols like
├──,│, mixed spaces/tabs, and inline comments). - Click Generate.
- Download a ready‑to‑use ZIP file with the correct folder hierarchy.
Features
- Robust parsing of irregular indentation (spaces, tabs, mixed).
- Supports common tree symbols (
├──,│, etc.). - Strips inline comments (
# comment). - Handles inconsistent formatting without requiring perfect input.
- Works out‑of‑the‑box with trees generated by ChatGPT or other LLMs.
Example
Paste a tree like this:
djs-api/
├── src/
│ ├── index.ts # Entry point
│ ├── utils/
│ │ └── helper.ts
│ └── config.ts
Click Generate → Download and you’ll receive a ZIP containing:
djs-api/
└── src/
├── index.ts
├── utils/
│ └── helper.ts
└── config.ts
Use Cases
- Bootstrapping AI‑generated projects
- Rapid prototyping
- Sharing project structures
- Teaching / tutorials
- Saving time on repetitive setup
Just paste and download.
Try It
Feedback & Contributions
We’re especially interested in:
- Weird or broken trees it fails on
- Edge cases from different LLMs
- Feature ideas (templates, file contents, etc.)
Built for developers who use AI daily and are tired of fixing its formatting. 😅