Here is the code snippet:
keychainPath = [keychainPath stringByAppendingPathComponent:@"data/default"];
DLog(@"Keychain data path: %@", keychainPath);
NSFileManager *fm = [NSFileManager defaultManager];
NSError *dataError = nil;
NSArray *dataFiles = [fm contentsOfDirectoryAtPath:keychainPath error:&dataError];
if(!dataFiles)
NSLog(@"Error: %@",dataError);
Now this works fine for most people, but some of them have reported problems, with the dataError object giving:
Error: Error
Domain=NSCocoaErrorDomain Code=260 UserInfo=0x14d1fa10 "The folder
"default" doesnโt exist." Underlying Error=(Error
Domain=NSOSStatusErrorDomain Code=-43 "The operation couldnโt be
completed. (OSStatus error -43.)" (File not found))
People having this problem stated that the default file / folder exists exactly where it should be, so I have no idea why this is not working.
Any help would be appreciated!
source
share