sahib / rmlint

Extremely fast tool to remove duplicates and other lint from your filesystem
http://rmlint.rtfd.org
GNU General Public License v3.0
1.86k stars 128 forks source link

exclude/ignore subdirectory option #575

Open Dieterbe opened 2 years ago

Dieterbe commented 2 years ago

Hi, I can't seem to find an option to ignore or exclude certain paths.

let's say i want to work within /foo but i have a directory like /foo/some/dir and also /foo/some/dir-backup which is a backup of the folder. i would then like to exclude /foo/some/dir-backup and any of its files from consideration.

i have been playing with the tagged paths but this would still consider /foo/some/dir/file.txt and /foo/some/dir-backup/file.txt to be duplicates. I have tried the --keep-all-untagged, --keep-all-tagged, --must-match-tagged and --must-match-untagged options, but none seem to behave as i would like, which is to effectively ignore the backup directory and if a file is only found once (outside of the tagged/backup directory) then don't consider it a duplicate.

is this possible?

thanks!