Synchronize: Compare file names (only)

Background . My photos are initially stored in a folder called ORIGINAL, with subfolders sorted by year and date including events, and possibly additional subfolder for every date.

The same photos are stored in another folder called TAGGED with the same folder structure and file names as in ORIGINAL. These photos are tagged with location, events, people's name and so on. I often move photos to a backup folder associated with each date and event in the TAGGED folder. I also want to move the same photos to the corresponding backup folder in ORIGINAL.

The problem is that the file size and date modified are not identical in the TAGGED and ORIGINAL folders. But the file names are the same. I can "synchronize" the files in the usual way so that the files that are not in TAGGED are marked for deletion in ORIGINAL. However, I do not want to delete these files. Therefore, I have to manually mark all files in ORIGINAL that are not in TAGGED and then use Cut and Past (recreate folder structure) in ORIGINAL to move the files to the respective backup folders associated with each date in ORIGINAL. Then I cancel the "synchronization" (since I do not want to move the tagged picture to the ORIGINAL folder). This is very time consuming and cumbersome.

Feature Request Synchronize . Moving files in ORIGINAL can happen "automatically" if DOPUS had this Comparison option: Compare file names / Identical file names. And then showing only files that exist in ORIGINAL and not in TAGGED. These files can be deleted (synchronization) or selected and moved to a backup folder using Cut and Past.

So, this is my feature request. Of course, one could use such an option in other contexts as well.

1 Like

You should be able to do this with

Select DESTTOSOURCE=notin

You should be able to do this with a Filter:

Find FILTERDEF =!Exists(Replace(fullpath, "L:\Original", "K:\Tagged"))

The name is always checked. Presumably the date or size changes when the metadata is edited, and the modes that check for either/both of those being different already do what you want?

Hello Leo

The date and size changes when I add metadata. Example. I have 57 files in source (with added metadata) and 103 files in destination (with original pictures). When I select date (different) or size or date (newer) or size, the Comparison Results are:

  Copy from source to destination 57
  Delete from destination 46

Problems.

  1. I do not want to copy 57 files with added metadata in Source to the Destination (marked with yellow colour).
  2. I must manually select the files that are marked with red for deletion in Destination, and use Cut and Past (recreate folder structure) to move these files to the backup folders in Destination.
  3. When this is done, I cancel “synchronization” because I do not want to copy 57 files with added metadata in Source to the Destination with the original photos.

Solution.
If DOPUS could compare filenames, the Result would be:

  Copy from source to destination 0
  Delete from destination 46

And I could have used Ctrl-A to select 46 files, Cut and Past (recrate folder structure) to move these files to the corresponding backup folders.

Hello lxp

I know nothing about scripting / filters.

  1. I copied Select DESTTOSOURCE=notin to Filter. The result is the same as when choosing date (different) or size or date (newer) or size.

  2. Find FILTERDEF =!Exists(Replace(fullpath, "L:\Original", "K:\Tagged"))

I haven’t tested this. But I assume that in this case I have to manually type the Original folder name and the Tagged folder name each time. I have thousands of folders, so if I’m right, this is not a solution for me.

It's not a filter. It's a command that is run from a button.

No, only once for the parts where the two folder trees differ.

Hello lxp

I don’t have one Original folder and one Tagged folder. I have hundreds, probably thousands. And inside each “main” folder I have subfolders, and often sub-subfolders.

I have separate “main" folders for Norway (where I live) and Other countries, and separate folders for original files and tagged files.

See attached example for trips to foreign counties in 2017.

Sometimes I want to compare alle events in 2017, sometimes only one trip.

The only thing I want is this: Select 2017-04-22 SPANIA Albir in disk D: and the same folder in disk E: with my mouse as I do when synchronizing files, compare filenames and list folders and files that exist in E: and not in D:. It’s as simple as that.

Syntax .

  If Filename in Source = Filename in Destination then skip files, 
  else show files  (included folders) in Destination.

This should be an easy criterion to implement in DOPUS.

I don't understand, sorry. How would Opus's synchronize tool ignoring date/size changes help you here?

Or do you mean you want the sync tool to look for files with the same names but different paths?

Yes, both approaches achieve this.

To use the Select command, navigate to the folders in E: and D: (source/destination).

To use the filter, you only need to navigate to one folder, as it automatically identifies the location of the other.

Just try it out. Select does nothing but select a few files, and Find only creates a collection.

Thanks for coming back, Leo. You wrote:

I don't understand, sorry. How would Opus's synchronize tool ignoring date/size changes help you here? Or do you mean you want the sync tool to look for files with the same names but different paths?

I will try to explain what the problem is and what I want to achieve.

1. Synchronize (mirror) content .
I have six SSDs in my PC. I do my daily work on disc D. Let's say it contains only three folders.

DOCUMENS
ORIGINALPHOTOS (date modified equal to date taken)
TAGGEDPHOTOS (date modified and size not equal to files in ORIGINALPHOS)

I want disk E to be an exact copy (mirror) of the contents of disk D. I write a lot, and almost every day I use DOPUS to synchronize (mirror) the contents of the DOCUMENTS folder in disk D to the DOCUMENTS folder in disk E. When I mirror the contents of the files (including new files) I use the date (newer) or size option, and files that are deleted in disk D are also deleted in disk E. In the same way I mirror my photos to disk E.

2.Synchronize file existence (not content in the files), identical folder structure.
The contents of the files in ORIGINALPHOTOS and TAGGEDPHOTOS are and should be different. I do not want to mirror the contents of the files. I often move images in TAGGEDPHOTOS to a backup folder. I want to move the same files in ORIGINALPHOTOS to a "similar" backup folder. My problem is to find out which images in ORIGINALPHOTOS that are not in TAGGEDPHOTOS. Then I can select these files and move them to the backup folder.

In short: ORIGINALPHOTOS and TAGGEDPHOTOS should contain the same files (images), but the content of the photos should be different.

DOPUS can compare file size and time. I just want a new option: compare whether files exist or not in folders where the path is identical. I repeat, the syntax should be approximately as follows (and similar to the one that applies when the file size and date are identical).

  If Filename in Source = Filename in Destination then skip files / do nothing,
  else show / list files (included folders) in Destination.

Then the user can choose to delete the remaining files or move them to another folder (using Cut and Past). This should be an easy criterion to implement in DOPUS.

We'll add an option for this in the next update. Thanks for the suggestion!

2 Likes

Fantastic news, Jon. Thank you very much!
Jøran Toresen