mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
5b1f7dde56
commit
ad1eff6603
2 changed files with 11 additions and 7 deletions
|
@ -210,6 +210,11 @@ typedef uint32_t OSType;
|
||||||
|
|
||||||
+ (NSFileManager*) defaultManager;
|
+ (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) changeCurrentDirectoryPath: (NSString*)path;
|
||||||
- (BOOL) changeFileAttributes: (NSDictionary*)attributes
|
- (BOOL) changeFileAttributes: (NSDictionary*)attributes
|
||||||
atPath: (NSString*)path;
|
atPath: (NSString*)path;
|
||||||
|
@ -249,8 +254,6 @@ typedef uint32_t OSType;
|
||||||
- (NSDictionary*) fileAttributesAtPath: (NSString*)path
|
- (NSDictionary*) fileAttributesAtPath: (NSString*)path
|
||||||
traverseLink: (BOOL)flag;
|
traverseLink: (BOOL)flag;
|
||||||
|
|
||||||
- (NSDictionary *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error;
|
|
||||||
|
|
||||||
- (BOOL) fileExistsAtPath: (NSString*)path;
|
- (BOOL) fileExistsAtPath: (NSString*)path;
|
||||||
- (BOOL) fileExistsAtPath: (NSString*)path isDirectory: (BOOL*)isDirectory;
|
- (BOOL) fileExistsAtPath: (NSString*)path isDirectory: (BOOL*)isDirectory;
|
||||||
- (NSDictionary*) fileSystemAttributesAtPath: (NSString*)path;
|
- (NSDictionary*) fileSystemAttributesAtPath: (NSString*)path;
|
||||||
|
|
|
@ -1820,17 +1820,18 @@ static NSStringEncoding defaultEncoding;
|
||||||
* <item>[NSDictionary-fileSystemFileNumber]</item>
|
* <item>[NSDictionary-fileSystemFileNumber]</item>
|
||||||
* </list>
|
* </list>
|
||||||
*/
|
*/
|
||||||
- (NSDictionary *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error
|
- (NSDictionary*) attributesOfItemAtPath: (NSString*)path
|
||||||
|
error: (NSError**)error
|
||||||
{
|
{
|
||||||
NSDictionary *d;
|
NSDictionary *d;
|
||||||
|
|
||||||
d = [GSAttrDictionaryClass attributesAt:
|
d = [GSAttrDictionaryClass attributesAt:
|
||||||
[self fileSystemRepresentationWithPath: path] traverseLink: NO];
|
[self fileSystemRepresentationWithPath: path] traverseLink: NO];
|
||||||
|
|
||||||
if (error != NULL)
|
if (error != NULL)
|
||||||
{
|
{
|
||||||
*error = [NSError _last];
|
*error = [NSError _last];
|
||||||
}
|
}
|
||||||
|
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue