Hi,
Is it possible to compare file content only when file time and size are different?
I have some apps which always open and save its files without any change, which in turn updated the file time without changing the content, thus causing file time and size comparison to always sync those files.
Thanks.
Compare file content only when time and size are different
- Posts: 5
- Joined: 22 Jul 2017
- Posts: 4056
- Joined: 11 Jun 2019
What would be the issue to just switching the file content compare entirely?
- Posts: 2451
- Joined: 22 Aug 2012
> Is it possible to compare file content only when file time and size are different?
If date, but particularly size is different, what is then the purpose of next comparing by content?
If size is different, the content will always compare as being different.
Comparing by content is only useful if left- and right-size (and-date) are the same, and allows for detecting potential data corruption or discrepancies.
If the file system (e.g. MTP) and/or protocol (e.g. FTP) does not support retaining file dates, you can opt to Compare just by file size.
If date, but particularly size is different, what is then the purpose of next comparing by content?
If size is different, the content will always compare as being different.
Comparing by content is only useful if left- and right-size (and-date) are the same, and allows for detecting potential data corruption or discrepancies.
If the file system (e.g. MTP) and/or protocol (e.g. FTP) does not support retaining file dates, you can opt to Compare just by file size.
- Posts: 5
- Joined: 22 Jul 2017
As mentioned, some of the apps I'm using opened it's data file and save without changing their content, thus caused the modified date to be updated. Thus, it would be great to have an option to compare content only if the date if different.