holmgr / cargo-sweep

A cargo subcommand for cleaning up unused build files generated by Cargo
MIT License
694 stars 31 forks source link

add a maxsize arg #20

Closed Eh2406 closed 5 years ago

Eh2406 commented 5 years ago

This adds a new argument that removes the oldest artefacts until the target directory drops below a specified total size. This is mostly useful when a widely shared target directory is literally completely filling a drive. I could see this being useful for a build/CI server, but the primary use case is Crater.