Now I use this code:
NSDictionary* attr = [[NSFileManager defaultManager] fileAttributesAtPath:file traverseLink:YES];
and get warning:
'fileAttributesAtPath:traverseLink:' is deprecated
Who knows what to use instead?
Thanks!
Use attributesOfItemAtPath:error:
instead.
use attributesOfItemAtPath:error:
NSError* error;
NSDictionary* attr = [[NSFileManager defaultManager] attributesOfItemAtPath:file error:&error];
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