mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Implement remove method
This commit is contained in:
parent
f2b3b97708
commit
b7708606ae
1 changed files with 3 additions and 2 deletions
|
@ -204,8 +204,9 @@
|
|||
|
||||
- (BOOL) removeAndReturnError: (NSError **)outError
|
||||
{
|
||||
outError = NULL;
|
||||
return NO;
|
||||
NSURL *url = [self URL];
|
||||
NSFileManager *mgr = [NSFileManager defaultManager];
|
||||
return [mgr removeItemAtPath: [url path] error: outError];
|
||||
}
|
||||
|
||||
- (NSURL *) replaceItemAtURL: (NSURL *)url
|
||||
|
|
Loading…
Reference in a new issue