jdupes icon indicating copy to clipboard operation
jdupes copied to clipboard

Interactive mode for links and dedupes

Open anfractuosity opened this issue 8 years ago • 4 comments

Hi,

I notice for symnlinks it says

" -l --linksoft make relative symlinks for duplicates w/o prompting "

Is there any way to prompt for those too?

Cheers Chris

anfractuosity avatar Jun 17 '17 07:06 anfractuosity

I did not write the original code that does hard linking, BTRFS dedupe, etc. and the authors of those did not make them behave the same way as -d does. Unfortunately, I have not had the time to go back and add prompting, plus at this point it would be a deviation in the expected behavior of the program which means it needs to be part of a 2.0 release. I'll mark it as a feature request so I can be sure to modify it before then.

jbruchon avatar Jun 17 '17 12:06 jbruchon

Cheers. And thanks for the program, I've just been using it on a number of my large backup folders to save some space :)

anfractuosity avatar Jun 17 '17 12:06 anfractuosity

If it gets changed, I would prefer that the same -N prompt parameter which controls prompting for deletes gets used. (Unless it is somehow possible to delete and link at the same time)

dedupes might be a bit different - they seem a lot less risky... (But consistency to always prompt for actions unless -N is specified is useful...)

The links might break stuff, especially if permissions and ownership differ between the files... (I seem -p exist on *nix for that issue, I'm not sure how Windows deals with permissions for hardlinks...)

mohag avatar Dec 22 '18 09:12 mohag

My plan for 2.0 involves a radically altered infrastructure that makes everything under the hood highly modular. For example, rather than having interactive deletion inside the act_deletefiles.c code, there will be a general interactive prompt system that each action module prompts through, so any enhancements to that system would carry over to all action modules that have an interactive mode.

jbruchon avatar Dec 22 '18 14:12 jbruchon