mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
NSURL: implement +fileURLWithPath:isDirectory:
Implement +[NSURL fileURLWithPath:isDirectory:], a class method added in OSX 10.5, which was missing from the implementation.
This commit is contained in:
parent
314f437f43
commit
e813dde02c
2 changed files with 9 additions and 0 deletions
|
@ -616,6 +616,12 @@ static NSUInteger urlAlign;
|
|||
return AUTORELEASE([[NSURL alloc] initFileURLWithPath: aPath]);
|
||||
}
|
||||
|
||||
+ (id) fileURLWithPath: (NSString*)aPath isDirectory: (BOOL)isDir
|
||||
{
|
||||
return AUTORELEASE([[NSURL alloc] initFileURLWithPath: aPath
|
||||
isDirectory: isDir]);
|
||||
}
|
||||
|
||||
+ (NSURL*) fileURLWithPathComponents: (NSArray*)components
|
||||
{
|
||||
return [self fileURLWithPath: [NSString pathWithComponents: components]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue