Enabling "Automatically Write Changes to .XMP" changes orig file creation, modification dates!
WARNING, a bit of an angry rant here given the damage... This issue was encountered with LR Classic on Mac. I have no idea if it occurs elsewhere. I sure hope not.
I have a catalog with about 180K images and videos, all organized into folders by date.
In each folder, I have the original images that should NEVER be modified. That includes the OS file creation time (which will match the date/time when the file was created by the camera if you don't do anything silly when importing images). Preserving the file creation time is very useful! Yesterday, I decided to enable the "feature" to "Automatically Write Changes to .XMP" in the Catalog settings. I did this as it seemed like a good idea to keep the metadata on disk as a sidecar to the original image (in addition to it being in the database). My hope was that this would provide an additional layer of security in case a catalog got corrupted, etc. You could sync the folder and get back all the metadata from the .XMP file. In theory at least.
To my horror, I just discovered that turning on this feature launched some LR operation that is walking the entire image collection, presumably to read metadata that will be copied into the .XMP sidecar, but in the process LR IS UPDATING THE ORIGINAL IMAGE CREATION AND MODIFICATION TIME TO THE CURRENT TIME! Even worse, I discovered this problem while backing up my Photos drive using rsync as I usually do. I couldn't figure out why the heck so many old, totally unmodified, files were being transferred to the backup so I looked at the file metadata and discovered the problem. To add insult to injury the rsync had already overwritten thousands of files on the backup drive. All that file metadata is GONE.
This seems like a spectacularly bad bug. AFAICT there's ZERO reason for LR to update the modification time, let alone the file creation time!
Is this a known issue?
Is there anyway to undo this? (e.g by using the image capture time from the image metadata to update the file creation time to match. Not perfect, but better than being totally wrong thanks to LR).
Hoping the LR engineering team gets on this one quickly.
