I need to update the modification time of a file from a cocoa application. Any suggestion?
Use NSFileManager
's setAttributes:ofItemAtPath:error:
method with the NSFileModificationDate
attribute.
(See the class reference but also the associated "File System Programming Guide" which is worth reading)
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