fdupes icon indicating copy to clipboard operation
fdupes copied to clipboard

Feature: Exclude Folder From Search

Open andreostevens opened this issue 11 years ago • 10 comments

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" ~/

andreostevens avatar Oct 23 '14 03:10 andreostevens

--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).

glensc avatar Dec 15 '14 19:12 glensc

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.

kalegood avatar Dec 15 '17 18:12 kalegood

@adrianlopezroche Hi, any change since this issue was created ? I also do need this feature.

sebma avatar Sep 03 '18 12:09 sebma

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 .

adrianlopezroche avatar Sep 03 '18 16:09 adrianlopezroche

Would be great. This is the feature I miss most in fdupes. Thanks for your work.

pitlochry avatar Mar 16 '19 14:03 pitlochry

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.

GTP95 avatar May 06 '19 13:05 GTP95