mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
* Source/NSFileManager.m:
* Headers/Foundation/NSFileManager.h: Add removeItemAtPath:error: method, as a simple wrapper around removeFileAtPath:handler: with no handler. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34251 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5175454a7c
commit
402a06fb2e
3 changed files with 18 additions and 0 deletions
|
@ -1462,6 +1462,15 @@ static NSStringEncoding defaultEncoding;
|
|||
}
|
||||
}
|
||||
|
||||
- (BOOL) removeItemAtPath: (NSString*)path
|
||||
error: (NSError**)error
|
||||
{
|
||||
BOOL result;
|
||||
|
||||
result = [self removeFileAtPath: path handler: nil];
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns YES if a file (or directory etc) exists at the specified path.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue