In my app, I create a directory, and then the following code works:
NSDictionary *fileAttributes = [fileManager fileAttributesAtPath:trackDirectory traverseLink:YES];
NSDate *fileDate = [fileAttributes objectForKey:NSFileModificationDate];
However, when I try and get the NSFileCreationDate instead, it doesn’t work.
What am I doing wrong?
As far as I can see, there is no other date on iPhoneOS. Here is what the whole
attributesOfItemAtPath:looks like:So, your answer is.. you’re trying to access a dictionary key that is not present on iPhoneOS.