czkawka icon indicating copy to clipboard operation
czkawka copied to clipboard

Allow filtering of results list to just one of the included directories

Open nirvdrum opened this issue 3 years ago • 3 comments

I'm trying to clear out space on an SD card that had photos and videos on it. I'd like to remove the files from the SD card while retaining the copies on my NAS. To make the clean-up easier and to prevent possibly deleting copies from the wrong location, it'd be nice if I could filter the results by the configured "included" directory. That way, I could see all the files from the SD card that are duplicates of files that exist in at least one of the other "included" directories.

nirvdrum avatar Jan 28 '21 01:01 nirvdrum

This sounds similar to AllDup's Comparison method options:

image

With this option selected, it will not show you a group that contains multiple identical files from the same folder, unless there are also at least one identical file in another selected folder.

This is the single biggest problem I have with FSLint, and I haven't found any software on Linux that handles this well. I select two folders, compare them for duplicate files, and it finds many files that exist in both folders. I select all the files in one folder, ask to delete them, but then it shows me a list of multiple copies of the same file that only exist in the folder I've selected. I don't want to delete all of the copies of it, so I unselect that group. But then it asks again. And again. And again. And it's extremely tedious to go through by hand and unselect all of them.

The other similar option in AllDup is "Don't process any groups with all files selected":

image

Where you can just tell it to delete all of them, but if deleting files in a particular group would delete all copies of those files, it ignores that group while deleting the rest.

endolith avatar Feb 25 '21 20:02 endolith

Hi, I finally managed to install Czkawka with xtradeb ppa, thanks a lot for this fork!

I agree with the issue, please would it be possible to have, like in FSLint, when we select one of the duplicates, another option in the bottom "Select" button menu : "Include all from same folder" which would automatically select all the duplicates found, which are in the same directory ?

Valeryan24 avatar Apr 26 '21 06:04 Valeryan24

Good ideas. For the NAS/SD type of problem, another option might be to add the source as read only so there is no option to select files from there for any action.

petermoo avatar Jul 18 '22 05:07 petermoo