fdupes
fdupes copied to clipboard
Feature: Exclude Folder From Search
A feature that would be useful to add would be the option to ignore/exclude a folder.
For example, I want to find dupes in my home folder but don't want to delve into say: ~/.wine or .config.
A possible solution could be something like: fdupes -R --exclude={.wine,.config} ~/ or for simplicity:
fdupes -R --exclude=".wine" ~/
--exclude={.wine,.config} would be expanded by shell to --exclude=".wine .config" which is ambiguous whether you mean .wine .config or .wine and .config, so i rather suggest using --exclude as glob pattern and the option may be repeated. like it works in grep(1) and rsync(1).
A temporary solution is copying the output of ls -d */ | grep -v '\excluded dir' to fdupes ./ --recurse: paste_output_here
The semicolon is crucial. Also, there has to be a prettier way to do this, but that's the extent of my skills.
@adrianlopezroche Hi, any change since this issue was created ? I also do need this feature.
Working on it.
On Mon, Sep 3, 2018, 8:23 AM sebma [email protected] wrote:
@adrianlopezroche https://github.com/adrianlopezroche Hi, any change since this issue was created ? I also do need this feature.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/adrianlopezroche/fdupes/issues/8#issuecomment-418099940, or mute the thread https://github.com/notifications/unsubscribe-auth/AF8J_bibTZpFRrvMkd8TqeXTsy3z6whzks5uXR85gaJpZM4Cx_7j .
Would be great. This is the feature I miss most in fdupes. Thanks for your work.
I would like this feature too. There's already the option to list the directories to look into, but if you want to exclude just one directory inside a folder with lots of subfolders that is inconvenient.