====== 폴더를 제어하는 클래스 ====== * [[http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/Reference/Reference.html#//apple_ref/occ/instm/NSFileManager/createDirectoryAtPath:attributes:|폴더생성하는함수]] ====== 패스 스트링을 만들어가는 코드 ====== NSString *filePath = // 처음에는 @"Downloads"만 있었는데, "/z"를 붙여도 동작되더라. // 다만 없는 폴더를 만들어 주진 않는다. [[[NSHomeDirectory() stringByAppendingPathComponent:@"Downloads/z"] stringByAppendingPathComponent:fileName] // 확장자를 붙이고 싶을때 이걸 쓰면 된다. 구지 "."을 붙이네 마네 하지 않아도 됨 stringByAppendingPathExtension:@"jpg"];