Data update
This commit is contained in:
parent
61b93a2cd1
commit
5af6d93694
858 changed files with 20572 additions and 2082 deletions
|
|
@ -0,0 +1,8 @@
|
|||
CFURLRef desktopURL = fn FileManagerURLForDirectory( NSDesktopDirectory, NSUserDomainMask )
|
||||
CFURLRef url = fn URLByAppendingPathComponent( desktopURL, @"file.txt" )
|
||||
CFDictionaryRef dict = fn FileManagerAttributesOfItemAtURL( url )
|
||||
|
||||
print dict[@NSFileModificationDate] // Read file's current date
|
||||
|
||||
// Reset file date to current
|
||||
fn FileManagerSetAttributesOfItemAtURL( CFURLRef url, @{NSFileModificationDate:fn DateNow )
|
||||
Loading…
Add table
Add a link
Reference in a new issue