mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +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
|
@ -1,3 +1,10 @@
|
|||
2011-12-05 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSFileManager.m:
|
||||
* Headers/Foundation/NSFileManager.h: Add removeItemAtPath:error:
|
||||
method, as a simple wrapper around removeFileAtPath:handler: with
|
||||
no handler.
|
||||
|
||||
2011-12-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* config/config.constant-string-encoding.c: test for string literal
|
||||
|
|
|
@ -225,6 +225,8 @@ typedef uint32_t OSType;
|
|||
- (BOOL) moveItemAtPath: (NSString*)src
|
||||
toPath: (NSString*)dst
|
||||
error: (NSError**)error;
|
||||
- (BOOL) removeItemAtPath: (NSString*)path
|
||||
error: (NSError**)error;
|
||||
#endif
|
||||
|
||||
- (BOOL) changeCurrentDirectoryPath: (NSString*)path;
|
||||
|
|
|
@ -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…
Reference in a new issue