Little application that you can run to cleanup a directory
- Interactive cleanup: Lists files and directories in the current working directory and prompts for confirmation before deletion.
- Lightweight: No additional configuration files or dependencies beyond Rust and the
crossterm
crate. - Immediate quit: Press
q
at any prompt to exit the application.
-
Clone the repository
git clone https://github.com/Equasa/directory-clean-up.git cd directory-clean-up
-
Build in release mode
cargo build --release
-
(Optional) Install globally
cargo install --path .
Run the tool from within the directory you want to clean:
# If installed globally
clean-dir
# Or directly via Cargo
cargo run --release
Example session:
The current directory is: /home/user/projects/my-app/
Press q to quit
src/
Remove directory? [y/n] y
README.md
Remove file? [y/n] n
Directory cleaned
├── Cargo.toml # Project metadata and dependencies (crossterm)
├── .gitignore
└── src
├── main.rs # Entry point: lists and deletes objects
└── utils.rs # Helper functions: ls, confirm, delete_object
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is currently unlicensed. Contact the author for licensing inquiries.