| Crates.io | anon-flatten |
| lib.rs | anon-flatten |
| version | 0.1.0 |
| created_at | 2025-06-21 14:25:06.505572+00 |
| updated_at | 2025-06-21 14:25:06.505572+00 |
| description | 一个简单的文件目录扁平化工具,让复杂的嵌套文件夹结构变得和爱音一样平 | A simple file directory flattening tool inspired by Anon Chihaya |
| homepage | https://github.com/mygo-studio/anon-flatten |
| repository | https://github.com/mygo-studio/anon-flatten.git |
| max_upload_size | |
| id | 1720849 |
| size | 819,624 |
# 从源码构建
git clone https://github.com/mygo-studio/anon-flatten.git
cd anon-flatten
cargo build --release
cargo install anon-flatten
# 基本用法
anon-flatten -i <源文件夹> -o <目标文件夹>
# 示例
anon-flatten -i ./messy_folders -o ./organized_flat
假设你有这样的文件结构:
messy_folders/
├── docs/
│ ├── report.pdf
│ └── notes/
│ └── meeting.txt
├── images/
│ ├── photo1.jpg
│ └── screenshots/
│ └── screen.png
└── code/
└── main.rs
运行 anon-flatten -i ./messy_folders -o ./flat_output 后:
flat_output/
├── report.pdf
├── meeting.txt
├── photo1.jpg
├── screen.png
└── main.rs
就像千早爱音一样,简单直接,一马平川!🎸
[package]
name = "anon-flatten"
version = "0.1.0"
edition = "2024"
[dependencies]
anyhow = "1.0.98"
clap = { version = "4.5.40", features = ["derive"] }
colored = "3.0.0"
fs_extra = "1.3.0"
indicatif = "0.17.11"
walkdir = "2.5.0"
# 开发构建
cargo build
# 发布构建
cargo build --release
# 运行测试
cargo test
本项目采用 MIT 许可证。详见 LICENSE 文件。