* 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:
ericwa 2011-12-06 06:21:33 +00:00
parent 5175454a7c
commit 402a06fb2e
3 changed files with 18 additions and 0 deletions

View file

@ -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

View file

@ -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;

View file

@ -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.
*/