I got a function online that takes and NSString of a path and returns the inode value. But when I pass it a string it always errors with the following
Program received signal: EXC_BAD_ACCESS.
Here are the two strings I have tried, do I need to put then in some sort of special format.
NSString * temp = @"/Users/username/Desktop/Dropbox/Deleted/KeePass/KeePass.exe";
NSString *temp =@"/System/Library/Fonts/AppleGothic.ttf";
Program received signal: EXC_BAD_ACCESS.
Here are the two strings I have tried, do I need to put then in some sort of special format.
NSString * temp = @"/Users/username/Desktop/Dropbox/Deleted/KeePass/KeePass.exe";
NSString *temp =@"/System/Library/Fonts/AppleGothic.ttf";
PHP:
long getInode(NSString* path) {
NSFileManager* fm = [NSFileManager defaultManager];
NSError* error;
NSDictionary* info = [fm attributesOfItemAtPath:path error:&error];
NSNumber* inode = [info objectForKey:NSFileSystemFileNumber];
if (error) {
[NSApp presentError:error];
}
return [inode longValue];
}