-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
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/.
- When I run
dupd rmshI'm not sure which copy is kept of every file, it can be either from/path1/or/path2/. - When I run
dupd dups -p /path2/then the filesfooandtestare reported twice which makes it impossible to remove the dups report "blindly" because then I completely remove filefoofrom my system.
In above layout, it would work something like:
$ dupd scan ./files10/
done
$ dupd rmsh --path ./files10/path2/
# copy paste lines below in your terminal to remove the duplicates
rm ./files10/path2/hello
rm ./files10/path2/sub/foo
rm ./files10/path2/sub/test
rm ./files10/path2/test
Also attached files10 in zip.
files10.zip
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels