21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#import "OFFile.h"
#import "OFExceptions.h"
@implementation OFFile
+ newWithPath: (const char*)path
andMode: (const char*)mode
{
return [[OFFile alloc] initWithPath: path
andMode: mode];
}
+ (BOOL)changeModeOfFile: (const char*)path
toMode: (mode_t)mode
{
// FIXME: On error, throw exception
|
|
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#import "OFFile.h"
#import "OFExceptions.h"
@implementation OFFile
+ newWithPath: (const char*)path
andMode: (const char*)mode
{
return [[self alloc] initWithPath: path
andMode: mode];
}
+ (BOOL)changeModeOfFile: (const char*)path
toMode: (mode_t)mode
{
// FIXME: On error, throw exception
|