Develop
2013.04.23 18:08
[ios] 디렉토리 하하하..
조회 수 32633 댓글 0
디렉토리 탐색하는 샘플 코드~
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); } }
-
[c] 가변인자 함수(printf와 같은..)
-
[linux] 한글 URL 인식할 수 있게 아파치(Apache) 설정 (mod_url.c 설치)
-
[c] openssl 샘플코드.. 어려움 ㅠㅠ
-
[c] 바로 보고 정리할 것.. ㅋㄷㅋㄷ
-
[c] UTF-8을 EUC-KR로 변환.. (iconv)
-
[c] 도메인(호스트)으로 IP정보 알아오기.. (nslookup과 비슷)
-
[c] 파이프(popen)로 다른 프로세스 실행결과 가져오기
-
[c++] Win32 API 기본 출력인 MessageBox() 함수 사용 예제..
-
[c++] mfc에서 윈도우 항상 위 속성 주기..
-
[c] 쓰레드에 대한 내용 퍼오기..ㅡㅡ;
-
[c++] 채팅로봇 소스.. ㅋㄷㅋㄷ
-
[doc] 인공지능 관련 자료(채팅로봇도 포함..)