디렉토리 탐색하는 샘플 코드~
NSString *newDir; if( parent_dir > 0 ){ newDir = [NSString stringWithFormat:@"NToon/%d", parent_dir]; }else{ newDir = @"NToon"; } NSString *newPath = [documentsDirectory stringByAppendingPathComponent:newDir]; if (![fileManager fileExistsAtPath:newPath]) { if ([fileManager createDirectoryAtPath:newPath withIntermediateDirectories:YES attributes:nil error:&error]) { //NSLog(@"getDBFilePath: %@ created.", newPath); } else { NSLog(@"getDBFilePath: Failed to create %@ due to %@", newPath, error); } }