adrianlopezroche / fdupes

FDUPES is a program for identifying or deleting duplicate files residing within specified directories.
2.48k stars 186 forks source link

Feature: Exclude Folder From Search #8

Open andreostevens opened 9 years ago

andreostevens commented 9 years ago

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

glensc commented 9 years ago

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

kalegood commented 6 years ago

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.

sebma commented 6 years ago

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

adrianlopezroche commented 6 years ago

Working on it.

On Mon, Sep 3, 2018, 8:23 AM sebma notifications@github.com 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 .

GTP95 commented 5 years ago

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.

RolandHughes commented 1 year ago

Yes, +1. Being able to exclude a list of directories from search would be awesome. People been asking since 2014 and it still isn't there.

GitTworn commented 1 year ago

I would like this feature too.

I backup my phone photos to my Synology NAS. Synology has an app called Photos which works great for viewing them later. It creates a special folder called "@eaDir" in every folder which has photos or videos in it with thumbnails and other meta data.

When I scan the Photos directory using fdupes I would like to exclude all directories with the name "@eaDir" to only focus on the actual image files.

Is there a way to do that now?

ph9t commented 1 year ago

Would be really helpful specially for those people who have like billions of node_modules, virtual environments, &c. directories lying about everywhere.

rickalex21 commented 1 year ago

Same problem as @ph9t , I have a ton of node_modules a --exclude would be nice.

m-chaturvedi commented 3 months ago

A temporary solution is copying the output of ls -d */ | grep -v '\excluded dir' to fdupes ./ --recurse: paste_output_here

@andreostevens I wrote undupes to leverage the Unix philosophy to address these kinds of issues :-). @glensc https://github.com/m-chaturvedi/undupes