langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
|
|
@ -0,0 +1,11 @@
|
|||
NSFileManager *fm = [NSFileManager defaultManager];
|
||||
|
||||
// Pre-OS X 10.5
|
||||
NSLog(@"%@", [[fm fileAttributesAtPath:@"input.txt" traverseLink:YES] fileModificationDate]);
|
||||
[fm changeFileAttributes:[NSDictionary dictionaryWithObject:[NSDate date] forKey:NSFileModificationDate]
|
||||
atPath:@"input.txt"];
|
||||
|
||||
// OS X 10.5+
|
||||
NSLog(@"%@", [[fm attributesOfItemAtPath:@"input.txt" error:NULL] fileModificationDate]);
|
||||
[fm setAttributes:[NSDictionary dictionaryWithObject:[NSDate date] forKey:NSFileModificationDate]
|
||||
ofItemAtPath:@"input.txt" error:NULL];
|
||||
Loading…
Add table
Add a link
Reference in a new issue