2001-04-19 22:09:25 +00:00
|
|
|
/* -*-objc-*-
|
1997-03-03 20:10:10 +00:00
|
|
|
NSFileManager.h
|
|
|
|
|
1999-06-17 19:09:25 +00:00
|
|
|
Copyright (C) 1997,1999 Free Software Foundation, Inc.
|
1997-03-03 20:10:10 +00:00
|
|
|
|
|
|
|
Author: Mircea Oancea <mircea@jupiter.elcom.pub.ro>
|
|
|
|
Author: Ovidiu Predescu <ovidiu@net-community.com>
|
|
|
|
Date: Feb 1997
|
|
|
|
|
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
1999-09-09 02:56:20 +00:00
|
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
1997-03-03 20:10:10 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NSFileManager_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
#define __NSFileManager_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
|
|
|
|
#include <Foundation/NSObject.h>
|
1998-12-03 16:20:31 +00:00
|
|
|
|
|
|
|
#ifndef STRICT_OPENSTEP
|
1997-03-03 20:10:10 +00:00
|
|
|
#include <Foundation/NSUtilities.h>
|
|
|
|
#include <Foundation/NSDictionary.h>
|
|
|
|
|
|
|
|
@class NSNumber;
|
|
|
|
@class NSString;
|
|
|
|
@class NSData;
|
|
|
|
@class NSDate;
|
|
|
|
@class NSArray;
|
|
|
|
@class NSMutableArray;
|
|
|
|
|
|
|
|
@class NSDirectoryEnumerator;
|
|
|
|
|
|
|
|
@interface NSFileManager : NSObject
|
1999-06-18 10:28:11 +00:00
|
|
|
{
|
1999-09-16 07:21:34 +00:00
|
|
|
NSString *_lastError;
|
1999-06-18 10:28:11 +00:00
|
|
|
}
|
1997-03-03 20:10:10 +00:00
|
|
|
|
1999-06-17 19:09:25 +00:00
|
|
|
+ (NSFileManager*) defaultManager;
|
1997-03-03 20:10:10 +00:00
|
|
|
|
1999-06-17 19:09:25 +00:00
|
|
|
- (BOOL) changeCurrentDirectoryPath: (NSString*)path;
|
2002-09-15 07:51:29 +00:00
|
|
|
- (BOOL) changeFileAttributes: (NSDictionary*)attributes
|
|
|
|
atPath: (NSString*)path;
|
|
|
|
- (NSArray*) componentsToDisplayForPath: (NSString*)path;
|
|
|
|
- (NSData*) contentsAtPath: (NSString*)path;
|
|
|
|
- (BOOL) contentsEqualAtPath: (NSString*)path1
|
|
|
|
andPath: (NSString*)path2;
|
1999-06-17 19:09:25 +00:00
|
|
|
- (BOOL) copyPath: (NSString*)source
|
|
|
|
toPath: (NSString*)destination
|
|
|
|
handler: (id)handler;
|
2002-09-15 07:51:29 +00:00
|
|
|
- (BOOL) createDirectoryAtPath: (NSString*)path
|
|
|
|
attributes: (NSDictionary*)attributes;
|
1999-06-17 19:09:25 +00:00
|
|
|
- (BOOL) createFileAtPath: (NSString*)path
|
|
|
|
contents: (NSData*)contents
|
|
|
|
attributes: (NSDictionary*)attributes;
|
2002-09-15 07:51:29 +00:00
|
|
|
- (BOOL) createSymbolicLinkAtPath: (NSString*)path
|
|
|
|
pathContent: (NSString*)otherPath;
|
|
|
|
- (NSString*) currentDirectoryPath;
|
|
|
|
- (NSArray*) directoryContentsAtPath: (NSString*)path;
|
|
|
|
- (NSString*) displayNameAtPath: (NSString*)path;
|
|
|
|
- (NSDirectoryEnumerator*) enumeratorAtPath: (NSString*)path;
|
|
|
|
- (NSDictionary*) fileAttributesAtPath: (NSString*)path
|
|
|
|
traverseLink: (BOOL)flag;
|
1999-06-17 19:09:25 +00:00
|
|
|
- (BOOL) fileExistsAtPath: (NSString*)path;
|
|
|
|
- (BOOL) fileExistsAtPath: (NSString*)path isDirectory: (BOOL*)isDirectory;
|
2002-09-15 07:51:29 +00:00
|
|
|
- (NSDictionary*) fileSystemAttributesAtPath: (NSString*)path;
|
|
|
|
- (const char*) fileSystemRepresentationWithPath: (NSString*)path;
|
* Add support for systems that support unichar file paths (e.g.
Windows).
* Headers/Foundation/NSFileManager.h (-localFromOpenStepPath:,
_openStepPathFromLocal:): New methods.
(NSDirectoryEnumerator): Updated ivars.
* Source/NSFileManager.m: Idem.
(-changeCurrentDirectoryPath, changeFileAttributes:,
currentDirectoryPath, etc): Update for Windows unichar paths.
* Headers/Foundation/NSString.h: (-unicharString,
-localFromOpenStepPath:, _openStepPathFromLocal:): New methods.
* Source/NSString.m: Idem.
* Source/GSFileHandle.m (-initForReadingAtPath:,
-initForWritingAtPath, -initForUpdatingAtPath:): Update for Windows
unichar paths.
* Source/NSData.m (readContentsOfFile, -writeToFile:,
initWithContentsOfMappedFile:): Idem.
* Source/NSTask.m (NSConcreteWindowsTask): Update for Windows
unichar paths.
(Patch from Roland Schwingle <roland.schwingel@onevision.de>)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20502 72102866-910b-0410-8b05-ffd578937521
2004-12-29 04:21:37 +00:00
|
|
|
#ifndef NO_GNUSTEP
|
|
|
|
- (NSString*) localFromOpenStepPath:(NSString*)path;
|
|
|
|
- (NSString*) openStepPathFromLocal:(NSString*)localPath;
|
|
|
|
#endif
|
1999-06-17 19:09:25 +00:00
|
|
|
- (BOOL) isExecutableFileAtPath: (NSString*)path;
|
|
|
|
- (BOOL) isDeletableFileAtPath: (NSString*)path;
|
2002-09-15 07:51:29 +00:00
|
|
|
- (BOOL) isReadableFileAtPath: (NSString*)path;
|
|
|
|
- (BOOL) isWritableFileAtPath: (NSString*)path;
|
|
|
|
- (BOOL) linkPath: (NSString*)source
|
|
|
|
toPath: (NSString*)destination
|
|
|
|
handler: (id)handler;
|
|
|
|
- (BOOL) movePath: (NSString*)source
|
|
|
|
toPath: (NSString*)destination
|
|
|
|
handler: (id)handler;
|
1999-06-17 19:09:25 +00:00
|
|
|
- (NSString*) pathContentOfSymbolicLinkAtPath: (NSString*)path;
|
2002-09-15 07:51:29 +00:00
|
|
|
- (BOOL) removeFileAtPath: (NSString*)path
|
|
|
|
handler: (id)handler;
|
1999-06-17 19:09:25 +00:00
|
|
|
- (NSString*) stringWithFileSystemRepresentation: (const char*)string
|
|
|
|
length: (unsigned int)len;
|
2002-09-15 07:51:29 +00:00
|
|
|
- (NSArray*) subpathsAtPath: (NSString*)path;
|
1997-03-03 20:10:10 +00:00
|
|
|
|
|
|
|
@end /* NSFileManager */
|
|
|
|
|
2002-09-16 13:23:09 +00:00
|
|
|
/**
|
|
|
|
* An informal protocol to which handler objects should conform
|
|
|
|
* if they wish to deal with copy and move operations performed
|
|
|
|
* by NSFileManager.
|
|
|
|
*/
|
1997-03-03 20:10:10 +00:00
|
|
|
@interface NSObject (NSFileManagerHandler)
|
2002-09-16 13:23:09 +00:00
|
|
|
/**
|
2003-02-11 10:26:17 +00:00
|
|
|
* <p>When an error occurs during a copy or move operation, the file manager
|
2002-09-16 13:23:09 +00:00
|
|
|
* will send this message to the handler, and will use the return value to
|
|
|
|
* determine whether the operation should proceed. If the method returns
|
|
|
|
* YES then the operation will proceed after the error, if it returns NO
|
|
|
|
* then it will be aborted.
|
2003-02-11 10:26:17 +00:00
|
|
|
* </p>
|
|
|
|
* <p>If the handler does not implement this method it will be treated as
|
|
|
|
* if it returns NO.
|
|
|
|
* </p>
|
|
|
|
* The error dictionary contains the following
|
|
|
|
* <list>
|
|
|
|
* <item><strong>"Error"</strong>
|
|
|
|
* contains a description of the error.
|
|
|
|
* </item>
|
|
|
|
* <item><strong>"Path"</strong>
|
|
|
|
* contains the path that is being processed when
|
|
|
|
* an error occured. If an error occurs during an
|
|
|
|
* operation involving two files, like copying, and
|
|
|
|
* it is not clear which file triggers the error it
|
|
|
|
* will default to the source file.
|
|
|
|
* </item>
|
|
|
|
* <item><strong>"FromPath"</strong>
|
|
|
|
* (Optional) contains the path involved in reading.
|
|
|
|
* </item>
|
|
|
|
* <item><strong>"ToPath"</strong>
|
|
|
|
* (Optional) contains the path involved in writing.
|
|
|
|
* </item>
|
|
|
|
* </list>
|
|
|
|
*
|
|
|
|
* <p>Note that the <code>FromPath</code> is a GNUstep extension.
|
|
|
|
* </p>
|
|
|
|
* <p>Also the <code>FromPath</code> and <code>ToPath</code> are filled
|
|
|
|
* in when appropriate. So when copying a file they will typically
|
|
|
|
* both have a value and when reading only <code>FromPath</code>.
|
|
|
|
* </p>
|
2002-09-16 13:23:09 +00:00
|
|
|
*/
|
1999-06-17 19:09:25 +00:00
|
|
|
- (BOOL) fileManager: (NSFileManager*)fileManager
|
|
|
|
shouldProceedAfterError: (NSDictionary*)errorDictionary;
|
2002-09-16 13:23:09 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The file manager sends this method to the handler immediately before
|
|
|
|
* performing part of a directory move or copy operation. This provides
|
|
|
|
* the handler object with information it can use in the event of an
|
2003-02-11 10:26:17 +00:00
|
|
|
* error, to decide whether processing should proceed after the error.
|
2002-09-16 13:23:09 +00:00
|
|
|
*/
|
1999-06-17 19:09:25 +00:00
|
|
|
- (void) fileManager: (NSFileManager*)fileManager
|
2002-09-16 13:23:09 +00:00
|
|
|
willProcessPath: (NSString*)path;
|
1997-03-03 20:10:10 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
|
|
|
|
@interface NSDirectoryEnumerator : NSEnumerator
|
|
|
|
{
|
2001-04-19 22:09:25 +00:00
|
|
|
void *_stack; /* GSIArray */
|
* Add support for systems that support unichar file paths (e.g.
Windows).
* Headers/Foundation/NSFileManager.h (-localFromOpenStepPath:,
_openStepPathFromLocal:): New methods.
(NSDirectoryEnumerator): Updated ivars.
* Source/NSFileManager.m: Idem.
(-changeCurrentDirectoryPath, changeFileAttributes:,
currentDirectoryPath, etc): Update for Windows unichar paths.
* Headers/Foundation/NSString.h: (-unicharString,
-localFromOpenStepPath:, _openStepPathFromLocal:): New methods.
* Source/NSString.m: Idem.
* Source/GSFileHandle.m (-initForReadingAtPath:,
-initForWritingAtPath, -initForUpdatingAtPath:): Update for Windows
unichar paths.
* Source/NSData.m (readContentsOfFile, -writeToFile:,
initWithContentsOfMappedFile:): Idem.
* Source/NSTask.m (NSConcreteWindowsTask): Update for Windows
unichar paths.
(Patch from Roland Schwingle <roland.schwingel@onevision.de>)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20502 72102866-910b-0410-8b05-ffd578937521
2004-12-29 04:21:37 +00:00
|
|
|
NSString *_topPath;
|
|
|
|
NSString *_currentFilePath;
|
|
|
|
NSString *(*_openStepPathFromLocalImp)(id, SEL, id);
|
2001-04-19 22:09:25 +00:00
|
|
|
struct
|
|
|
|
{
|
|
|
|
BOOL isRecursive: 1;
|
|
|
|
BOOL isFollowing: 1;
|
|
|
|
BOOL justContents: 1;
|
|
|
|
} _flags;
|
1997-03-03 20:10:10 +00:00
|
|
|
}
|
|
|
|
|
1999-06-17 19:09:25 +00:00
|
|
|
- (id) initWithDirectoryPath: (NSString*)path
|
|
|
|
recurseIntoSubdirectories: (BOOL)recurse
|
2001-04-19 22:09:25 +00:00
|
|
|
followSymlinks: (BOOL)follow
|
|
|
|
justContents: (BOOL)justContents;
|
1997-03-03 20:10:10 +00:00
|
|
|
|
1999-06-17 19:09:25 +00:00
|
|
|
- (NSDictionary*) directoryAttributes;
|
|
|
|
- (NSDictionary*) fileAttributes;
|
|
|
|
- (void) skipDescendents;
|
1997-03-03 20:10:10 +00:00
|
|
|
|
|
|
|
@end /* NSDirectoryEnumerator */
|
|
|
|
|
|
|
|
/* File Attributes */
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2002-09-16 11:30:22 +00:00
|
|
|
GS_EXPORT NSString* const NSFileAppendOnly;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2002-09-15 08:55:29 +00:00
|
|
|
GS_EXPORT NSString* const NSFileCreationDate;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileDeviceIdentifier;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2002-09-16 11:30:22 +00:00
|
|
|
GS_EXPORT NSString* const NSFileExtensionHidden;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2002-09-16 11:30:22 +00:00
|
|
|
GS_EXPORT NSString* const NSFileGroupOwnerAccountID;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileGroupOwnerAccountName;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2002-09-16 11:30:22 +00:00
|
|
|
GS_EXPORT NSString* const NSFileHFSCreatorCode;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2002-09-16 11:30:22 +00:00
|
|
|
GS_EXPORT NSString* const NSFileHFSTypeCode;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2002-09-16 11:30:22 +00:00
|
|
|
GS_EXPORT NSString* const NSFileImmutable;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileModificationDate;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2002-09-16 11:30:22 +00:00
|
|
|
GS_EXPORT NSString* const NSFileOwnerAccountID;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileOwnerAccountName;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFilePosixPermissions;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileReferenceCount;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileSize;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileSystemFileNumber;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileSystemNumber;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileType;
|
1998-12-03 16:20:31 +00:00
|
|
|
|
1997-03-03 20:10:10 +00:00
|
|
|
/* File Types */
|
|
|
|
|
2004-07-29 15:30:47 +00:00
|
|
|
/** Possible value for '<code>NSFileType</code>' key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileTypeDirectory;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** Possible value for '<code>NSFileType</code>' key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileTypeRegular;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** Possible value for '<code>NSFileType</code>' key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileTypeSymbolicLink;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** Possible value for '<code>NSFileType</code>' key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileTypeSocket;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** Possible value for '<code>NSFileType</code>' key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileTypeFifo;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** Possible value for '<code>NSFileType</code>' key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileTypeCharacterSpecial;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** Possible value for '<code>NSFileType</code>' key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileTypeBlockSpecial;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** Possible value for '<code>NSFileType</code>' key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileTypeUnknown;
|
1997-03-03 20:10:10 +00:00
|
|
|
|
|
|
|
/* FileSystem Attributes */
|
|
|
|
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File system attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileSystemSize;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File system attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileSystemFreeSize;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File system attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileSystemNodes;
|
2004-07-29 15:30:47 +00:00
|
|
|
/** File system attribute key in dictionary returned by
|
|
|
|
[NSFileManager-fileAttributesAtPath:traverseLink:]. */
|
2000-06-14 04:03:56 +00:00
|
|
|
GS_EXPORT NSString* const NSFileSystemFreeNodes;
|
1997-03-03 20:10:10 +00:00
|
|
|
|
|
|
|
/* Easy access to attributes in a dictionary */
|
|
|
|
|
|
|
|
@interface NSDictionary(NSFileAttributes)
|
2002-09-16 11:30:22 +00:00
|
|
|
- (NSDate*) fileCreationDate;
|
|
|
|
- (BOOL) fileExtensionHidden;
|
|
|
|
- (int) fileHFSCreatorCode;
|
|
|
|
- (int) fileHFSTypeCode;
|
|
|
|
- (BOOL) fileIsAppendOnly;
|
|
|
|
- (BOOL) fileIsImmutable;
|
1998-12-03 16:20:31 +00:00
|
|
|
- (unsigned long long) fileSize;
|
|
|
|
- (NSString*) fileType;
|
2002-09-16 11:30:22 +00:00
|
|
|
- (unsigned long) fileOwnerAccountID;
|
1998-12-03 16:20:31 +00:00
|
|
|
- (NSString*) fileOwnerAccountName;
|
2002-09-16 11:30:22 +00:00
|
|
|
- (unsigned long) fileGroupOwnerAccountID;
|
1998-12-03 16:20:31 +00:00
|
|
|
- (NSString*) fileGroupOwnerAccountName;
|
|
|
|
- (NSDate*) fileModificationDate;
|
|
|
|
- (unsigned long) filePosixPermissions;
|
|
|
|
- (unsigned long) fileSystemNumber;
|
|
|
|
- (unsigned long) fileSystemFileNumber;
|
1997-03-03 20:10:10 +00:00
|
|
|
@end
|
|
|
|
|
1998-12-03 16:20:31 +00:00
|
|
|
#endif
|
1997-03-03 20:10:10 +00:00
|
|
|
#endif /* __NSFileManager_h_GNUSTEP_BASE_INCLUDE */
|