mdfind bug: mdfind does not track same modification date as finder, HTML file input, and ls
mdfind modified date metadata should match finder and file picker modified date metadata, but doesn't.
To recreate the problem:
- In Finder, create folder 'test' somewhere (ie in Downloads)
- In a shell run:
mdls <path to test> | grep kMDItemContentModificationDate
Note that kMDItemContentModificationDate matches Date Modified for the folder as shown in the finder.
3. In Finder, create a subfolder inside the test folder, named 'test1'
Note that the Date Modified changes in the finder. This is also reflected in the 'lastModifiedDate' field of the File object return from a <input type='file'> form input on a webpage if you select the 'test' folder.
4. In a shell run:
mdls <path to test> | grep kMDItemContentModificationDate
Note that kMDItemContentModificationDate has not changed and so no longer matches the Finder or HTML file input.
Note that:
ls -l <path to test>
shows the same modification date as the Finder, not mdfind!
Is this a true bug or am I missing something?
MacBook Pro 15″, macOS 10.15