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

Only compare if filenames are identical #195

Open
dingens opened this issue Dec 3, 2024 · 0 comments
Open

Only compare if filenames are identical #195

dingens opened this issue Dec 3, 2024 · 0 comments

Comments

@dingens
Copy link

dingens commented Dec 3, 2024

(Having seen your opinion on #58, but I think this is a little different so I ask anyway. Feel free to decline, of course!)

I sometimes have the use case that if files are duplicates, then they also have the same name. In that case, the comparison phase could be sped up a lot because no hashing is needed.

I suggest an option --same-filename or so that causes fdupes to only do a detailed comparison (hashing, byte-wise comparison) if filenames are equal.

Going further, one could also think of an option --same-fullpath: only check files if their full paths (relative to the directory given on command line) are equal.

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

1 participant