refine

Refine your drives deduplicating files with Rust!

What it does

This is a simple tool that will scan some given paths, and report the possibly duplicated files.

It is blazingly fast and tiny. It does not try to change anything anywhere, it just reports what it does find.

In the future, this could make more than just detecting duplicates, like for instance moving those files, renaming them, it could have a GUI to enable easily acting upon them, etc., hence the name just refine.

How it works

It will: - recursively detect all files in the given paths (excluding hidden .folders and .files) - sort all the files by their sizes - for each group with the exact same size, a sample of each file will be retrieved and compared - each same size/same sample groups will be listed as possible duplicates:

``` 132.1 KB /Users/you/Downloads/path/file.ext /Users/you/Downloads/another-path/other.any /Volumes/External/backup-path/back.001

248.6 MB /Users/you/Downloads/video.mp4 /Volumes/External/backup-path/video.mpg.bak

... ```

How to use it

Install with cargo install refine, then just:

bash ❯ refine ~/Downloads /Volumes/Drive ...

Send as many sources as you want.

Changelog

License

This software is licensed under the MIT License. See the LICENSE file in the top distribution directory for the full license text.


Maintaining an open source project is hard and time-consuming, and I've put much ❤️ and effort into this.

If you've appreciated my work, you can back me up with a donation! Thank you 😊

Donate with PayPal button