[Swift]フォルダ作成
フォルダ作成
private func mkDir(path:String) -> Bool{ let _path = NSHomeDirectory().stringByAppendingPathComponent("Documents/" + path) var error: NSError? = nil return NSFileManager.defaultManager().createDirectoryAtPath(_path, withIntermediateDirectories: true, attributes: nil, error: &error) }