Go implementation of pdumpfs-clean.
% git clone https://github.com/yoshisatoyanagisawa/pdumpfs-clean-go.git
% cd pdumpfs-clean-go
% go build pdumpfs-clean.go
then, you get pdumpfs-clean
binary.
- --dryrun: dry run
- --keep: specifies the rule to keep directories.
- --remove-empty: removes empty directory (note that original pdumpfs-clean did not remove empty directory).
- --verbose: verbose.
Unlike original implementation, this pdumpfs-clean does not have --force option.