Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Exclude Folder From Search #8

Open
andreostevens opened this issue Oct 23, 2014 · 10 comments
Open

Feature: Exclude Folder From Search #8

andreostevens opened this issue Oct 23, 2014 · 10 comments

Comments

@andreostevens
Copy link

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
Copy link
Contributor

glensc commented Dec 15, 2014

--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
Copy link

kalegood commented Dec 15, 2017

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
Copy link

sebma commented Sep 3, 2018

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

@adrianlopezroche
Copy link
Owner

adrianlopezroche commented Sep 3, 2018 via email

@GTP95
Copy link

GTP95 commented May 6, 2019

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
Copy link

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
Copy link

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
Copy link

ph9t commented May 31, 2023

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

@rickalex21
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

11 participants