Contents

Develop
2013.04.23 18:08

[ios] 디렉토리 하하하..

Views 32660 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

디렉토리 탐색하는 샘플 코드~

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);
    }
}

?

List of Articles
No. Category Subject Author Date Views
553 Develop [c] 서비스 거부 공격(DoS;Denial of Service) 간단 소스.. ㅋㅋ file hooni 2013.04.23 6734
552 Develop [c] 셀프 넘버(Self Number) 구하기 1 hooni 2016.09.09 2382
551 Develop [c] 소수 구하기 #1 (한정된 숫자 내에 있는 소수 걸러내기) hooni 2003.04.23 7876
550 Develop [c] 소수 구하기 #2 (입력한 숫자가 소수인지 판별하기..) hooni 2013.04.23 11005
549 Develop [c] 소수점 반올림^^ hooni 2003.04.23 8498
548 Develop [c] 소켓 스트림 서버/클라이언트 (UDP) file hooni 2013.04.23 7610
547 Develop [c] 소켓 프로그래밍 요약.. hooni 2003.04.23 6992
546 Develop [c] 소켓의 세가지 동작모드 hooni 2003.04.23 6938
545 Develop [c] 소켓주소 구조체에 대해.. hooni 2003.04.23 6759
544 Develop [c] 숫자 맞추는 게임.. file hooni 2013.04.23 6951
543 Develop [c] 숫자(int, Number)를 hex코드로 변환하는 소스 file hooni 2013.04.23 8137
542 Develop [c] 스택/힙 오버플로우 테스트(overflow) file hooni 2003.04.23 7391
Board Pagination Prev 1 ... 20 21 22 23 24 25 26 27 28 29 ... 71 Next
/ 71