anjyakind/dunk
Cross platform recycle bin manager written in zig
DUNK is a cross-platform recycle bin manager written in Zig.
⚠️ Note: This project is a work in progress (WIP).
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
zig build
./zig-out/bin/dunk
You 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 list
Filter 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.