What is the easiest way to change the creation and last modification dates of a folder (and recursively contained items) in Mac OS?
Unfortunately it's not possible to manually change the modified date of any file in Windows.
The "Date Modified" information of a folder does not reflect the modification date of a file or a sub-folder inside. The "Date Modified" information is always more recent than the latest modification date of any of the files and/or folders.
I am not sure whether this is problem with Mavericks or what, but touch -mt
OR touch -t
just update the modified and last opened time.
Maybe touch -mt
OR touch -t
commands are working with 10.8.4 and earlier.
For Mavericks, I found solution as below.
SetFile -d '12/31/1999 23:59:59' file.txt
MM dd yyyy hh mm ss fileName
To update all files in folder just use
SetFile -d '12/31/1999 23:59:59' *
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With