Open joostdekeijzer opened 3 years ago
Agreed the rmsh script isn't very flexible. I added it long ago but never used it myself so it hasn't received much attention.
Now that the 2.0 version is in development (so I have a chance to make incompatible changes from 1.x) it might be a good time to restructure how it works.
I have the following use-case. Maybe I'm overlooking something but currently I don't see any way to do this without some extensive programming around dupd.
Say I have the following directory layout:
What I'm looking for is to remove all duplicate files from
/path2/
keeping all files from/path1/
and one copy of every file unique to/path2/
.dupd rmsh
I'm not sure which copy is kept of every file, it can be either from/path1/
or/path2/
.dupd dups -p /path2/
then the filesfoo
andtest
are reported twice which makes it impossible to remove the dups report "blindly" because then I completely remove filefoo
from my system.In above layout, it would work something like:
Also attached files10 in zip. files10.zip