holmgr / cargo-sweep

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

File not found error if used on newer target directories without native folder #27

Closed jonasbb closed 4 years ago

jonasbb commented 4 years ago

Cargo no longer creates the native directory, which breaks cargo-sweep. The change happened in this commit https://github.com/rust-lang/cargo/pull/7227

Eh2406 commented 4 years ago

This should be a straightforward fix. We just need a check that the sub directory exists before we clean it.