DUNK is a cross-platform recycle bin manager written in Zig.
- Cross-platform recycle bin management
- Remove files/folders to the recycle bin
- Permanently delete trashed files
- Restore trashed files to their original or custom location
- List and filter files currently in the recycle bin
- Library API for use in other Zig projects (Maybe)
- Zig compiler v0.14.0 or higher
I aim to keep the codebase up to date with the latest Zig compiler versions.
-
Clone this project:
git clone https://github.com/anjyakind/dunk.git
-
Navigate into the project:
cd dunk- Build the project:
zig build- The binary will be generated at:
./zig-out/bin/dunkYou can add this directory to your system PATH for easier access.
DUNK provides the following subcommands.
Move a file or folder to the recycle bin:
dunk remove [files...]Permanently delete a file/folder from the recycle bin:
dunk delete [trashed_files]Restore a trashed file/folder to its original location:
dunk restore [trashed_files]Optionally restore to a custom directory with --dir:
dunk restore [trashed_files] --dir .List files currently in the recycle bin:
dunk listFilter files using wildcards:
dunk list -f file.*.txt-
Windows support
-
macOS support
-
Linux support (partial)
-
Configuration file for default behavior
-
Improved filtering and searching
-
Integration tests
-
Library support: expose DUNK’s core logic as a reusable Zig package (Maybe)
Contributions are welcome!
If you’d like to help improve DUNK, please fork the repository and submit a pull request.
This project is licensed under the MIT License.