| 185 | | [manager createDirectoryAtPath:[appender.path stringByDeletingLastPathComponent] |
|---|
| 186 | | withIntermediateDirectories:YES |
|---|
| 187 | | attributes:[NSDictionary dictionaryWithObject:[NSNumber numberWithUnsignedLong:0700UL] forKey:NSFilePosixPermissions] |
|---|
| 188 | | error:NULL]; |
|---|
| 189 | | |
|---|
| | 185 | NSError *error = nil; |
|---|
| | 186 | if (![manager createDirectoryAtPath:[appender.path stringByDeletingLastPathComponent] |
|---|
| | 187 | withIntermediateDirectories:YES |
|---|
| | 188 | attributes:[NSDictionary dictionaryWithObject:[NSNumber numberWithUnsignedLong:0700UL] forKey:NSFilePosixPermissions] |
|---|
| | 189 | error:&error]) { |
|---|
| | 190 | AILogWithSignature(@"Error creating directory at %@: %@", |
|---|
| | 191 | [appender.path stringByDeletingLastPathComponent], |
|---|
| | 192 | error); |
|---|
| | 193 | } |
|---|
| | 194 | |
|---|