Delete if duplicate exists while moving

While moving files I would like to delete files in the source if a duplicate already exists in the target.

Does anyone know if that's possible?

How are you defining "duplicate"? Just the filenames/paths being the same, or other details as well?

I recognise this annoyance. When you want to move a big directory structure over to somewhere that already has some files, and you don't want to waste time copying files that already exist you typically choose "skip" for any matches, but that leaves a bunch of files in the source folder that you have to manually delete. I kind of want a "just delete source" option for matching files.

1 Like

How does Directory Opus consider files as duplicates? If there were another selection beside skip, it would say delete or delete any future selected.
The purpose is, I have a hard drive used for backups copying files to my main storage where some files got deleted. The backup hard drive will be secure erased afterwards and donated. If I get interrupted during the process I have to start over and go folder by folder. That will take a long time because it's an 8TB with hundreds of thousands of folders and files.

If it's only filenames then click Skip All (or Skip Identical, if you want to consider a few other attributes like size and date) and the files that already exist won't be moved. They'll then be the only things left on the source drive, at which point you can delete them.

I'm reluctant to Skip All Identical then later deleted all of the folders and files. I've gotten burned doing that a few times because I ended up removing folders that had not been copied yet.
Maybe someone know how to write a plugin or has a good idea to try it the way me and krisjohn wants.

If the last move + skip-all completed all the way through, then anything left must already be in the destination (or at least some other thing with the same name and path must already be there).

If you're worried you forgot to move something, you could do one last move + skip-all at that point to double-check (which should be very quick).