add remove-duplicates option

This commit is contained in:
Robin Appelman 2025-10-22 19:32:51 +02:00
commit 6705debd2a
8 changed files with 308 additions and 30 deletions

View file

@ -92,5 +92,13 @@ to automatically create a symlink to the new location of the file.
symlink = "~/Downloads/last"
```
Note that this symlink will only be set for files that match any of the
configured rules.
## Lastest download symlink
Galton can also be used to clean up duplicate downloads, when enabled, it will
check for any existing file with the same contents in the target directory and
delete the newly download file if a duplicate is found.
```toml
[watch]
remove-duplicates = true
```