Created
August 3, 2015 13:02
-
-
Save yajamon/79ba97d73d940161fac6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 保存ディレクトリの確認・生成 | |
BOOL *isDir = NULL; | |
if (![[NSFileManager defaultManager] fileExistsAtPath:dirPath isDirectory:isDir]) { | |
NSError * error; | |
[[NSFileManager defaultManager] createDirectoryAtPath:dirPath withIntermediateDirectories:NO attributes:nil error:&error]; | |
NSAssert(!error, @"file write error"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment