I\'ve been playing with FSEvents in a little application of mine to synchronize the content of my application with what\'s on the hard drive (basically, it\'s a lit
FSEvents
You can get the file ID by creating an URL from the path, then calling:
NSString *fileID = nil; [url getResourceValue:&fileID forKey:NSURLFileResourceIdentifierKey error:&error]; //NS_AVAILABLE(10_7, 5_0);
(This identifier is not persistent across system restarts)