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

Add a command to delete all but one file in *noninteractive* without using *prefer*. --keep-only-one #29

Open
oxalorg opened this issue Dec 30, 2016 · 1 comment

Comments

@oxalorg
Copy link

oxalorg commented Dec 30, 2016

Most of the other duplication tool removers allow combining options like delete and noprompt to preserve the first file in each set of duplicates and delete the rest without prompting the user. Thus I think that it is a very common use case.

Currently combining --delete with --noninteractive causes to save ALL files if there is no preferred path match.

Something like --keep-only-one along with both --delete and --noninteractive should delete all but the first match if the preferred list is empty.

EDIT: I'm trying to work on, will post here if I have some progres. In the meanwhile Thoughts would be appreciated. Created a pull request.

@ssokolow
Copy link
Owner

ssokolow commented Jan 1, 2017

I did think about this, but I'm a bit concerned about blindly asking a duplicate-finder to "delete one" without any cue as to which should be deleted.

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

2 participants