coding standard tweaks

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30824 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-06-22 17:44:51 +00:00
parent af2be47796
commit fd58513127
2 changed files with 11 additions and 7 deletions

View file

@ -210,6 +210,11 @@ typedef uint32_t OSType;
+ (NSFileManager*) defaultManager;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
- (NSDictionary *) attributesOfItemAtPath: (NSString*)path
error: (NSError**)error;
#endif
- (BOOL) changeCurrentDirectoryPath: (NSString*)path;
- (BOOL) changeFileAttributes: (NSDictionary*)attributes
atPath: (NSString*)path;
@ -249,8 +254,6 @@ typedef uint32_t OSType;
- (NSDictionary*) fileAttributesAtPath: (NSString*)path
traverseLink: (BOOL)flag;
- (NSDictionary *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error;
- (BOOL) fileExistsAtPath: (NSString*)path;
- (BOOL) fileExistsAtPath: (NSString*)path isDirectory: (BOOL*)isDirectory;
- (NSDictionary*) fileSystemAttributesAtPath: (NSString*)path;

View file

@ -1820,17 +1820,18 @@ static NSStringEncoding defaultEncoding;
* <item>[NSDictionary-fileSystemFileNumber]</item>
* </list>
*/
- (NSDictionary *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error
- (NSDictionary*) attributesOfItemAtPath: (NSString*)path
error: (NSError**)error
{
NSDictionary *d;
d = [GSAttrDictionaryClass attributesAt:
[self fileSystemRepresentationWithPath: path] traverseLink: NO];
[self fileSystemRepresentationWithPath: path] traverseLink: NO];
if (error != NULL)
{
*error = [NSError _last];
}
{
*error = [NSError _last];
}
return d;
}