Utilizar createDirectoryAtPath: withIntermediateDirectories: attributes: error
NSString *directorioTemp = NSTemporaryDirectory();
NSFileManager *fileManager = [[NSFileManager alloc] init];
NSString *ubicacion = [directorioTemp stringByAppendingPathComponent: @"directorionuevo"];
if([fileManager createDirectoryAtPath:ubicacion withIntermediateDirectories:YES attributes:nil error:&errorInfo]){
NSLog(@"Almacenado correctamente");
}
No hay comentarios:
Publicar un comentario