Skip to content

Feature Request: Use complex conditions to determine whether a file needs to be synchronized. #2680

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
huajingyu opened this issue Mar 19, 2025 · 1 comment

Comments

@huajingyu
Copy link

huajingyu commented Mar 19, 2025

First of all, in addition to the time when the file was modified, there is also the time when it was created. I'm used to using special file copy tools that keep files and folders created and folders modified. (WinMerge can't preserve these properties.)

Therefore, my purpose is to hope that WinMerge will be able to preserve the time when the files and folders were created and the time when the folders were modified when syncing files. At the same time, it is allowed to "treat files with different creation times as different files" and "treat folders with different time attributes as different folders".

Second, file times from different sources may have different levels of precision (e.g., NTFS 100 nanoseconds, FAT 10 millisecond creation time, and 2 seconds modification time.) I want to filter out files where the time attribute is divisible, and then overwrite the imprecise values with more precise values. That's my second purpose.

Therefore, it is best to be able to use various attributes (such as the modification time on the left or right) and complex conditions (such as the modification time must be later than a certain date, or the user writes the formula himself.) to filter the files, and then manually mark them by the user and choose whether to sync or not.

It's like Excel with filtering.

A few suggestions I'm not sure if I should open a separate issue:

  1. The time properties of the file can be displayed to the most accurate value. The file is accurate to 100 nanoseconds if it is on an NTFS volume, 10 ms for creation and 2 seconds for FAT, FAT32, exFAT volumes. The UDF file system is 1 subtle, and on Linux it is 1 nanosecond (but Linux still doesn't support write creation times).
  2. When syncing files, make sure that any attributes of both parties are the same. (Includes the time properties of the folder and the time when all objects were created.) Allows the user to decide for each attribute whether they want to set it from left to right or right to left.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@sdottaka @huajingyu and others