ファイル存在判定とリネーム
ファイル存在判定
NSFileManager *fileManager = [NSFileManager defaultManager]; BOOL isExist = [fileManager fileExistsAtPath:dbPath];
リネーム
if ([fileManager fileExistsAtPath:originalPath]) { BOOL isSuccess = [fileManager moveItemAtPath:originalPath toPath:toPath error:nil]; }