[Previous]
[Up]
[Next]
NSFileManager
Authors
- Richard Frith-Macdonald
-
Version: $Revision$
Date: $Date$
Declared in: Foundation/NSFileManager.h
Inherits from: NSObject
Conforms to: NSObject
Instance Variables
Methods
Class Methods
+ (NSFileManager*) defaultManager;
Instances Methods
- (BOOL) changeCurrentDirectoryPath: (NSString*)path;
- (BOOL) changeFileAttributes: (NSDictionary*)attributes;
- (NSData*) contentsAtPath: (NSString*)path;
- (BOOL) contentsEqualAtPath: (NSString*)path1 andPath: (NSString*)path2;
- (BOOL) copyPath: (NSString*)source toPath: (NSString*)destination handler: handler;
- (BOOL) createDirectoryAtPath: (NSString*)path attributes: (NSDictionary*)attributes;
- (BOOL) createFileAtPath: (NSString*)path contents: (NSData*)contents attributes: (NSDictionary*)attributes;
- (BOOL) createSymbolicLinkAtPath: (NSString*)path pathContent: (NSString*)otherPath;
- (NSString*) currentDirectoryPath;
- (NSArray*) directoryContentsAtPath: (NSString*)path;
- (NSDirectoryEnumerator*) enumeratorAtPath: (NSString*)path;
- (NSDictionary*) fileAttributesAtPath: (NSString*)path traverseLink: (BOOL)flag;
- (BOOL) fileExistsAtPath: (NSString*)path;
- (BOOL) fileExistsAtPath: (NSString*)path isDirectory: (BOOL*)isDirectory;
- (NSDictionary*) fileSystemAttributesAtPath: (NSString*)path;
- (const char*) fileSystemRepresentationWithPath: (NSString*)path;
Produces a C-string representation of a file path.
Attempts to incorporate drive information on windows.
- (BOOL) isDeletableFileAtPath: (NSString*)path;
- (BOOL) isExecutableFileAtPath: (NSString*)path;
- (BOOL) isReadableFileAtPath: (NSString*)path;
- (BOOL) isWritableFileAtPath: (NSString*)path;
- (BOOL) linkPath: (NSString*)source toPath: (NSString*)destination handler: handler;
- (BOOL) movePath: (NSString*)source toPath: (NSString*)destination handler: handler;
- (NSString*) pathContentOfSymbolicLinkAtPath: (NSString*)cStringPath;
- (BOOL) removeFileAtPath: (NSString*)path handler: handler;
- (NSString*) stringWithFileSystemRepresentation: (const char*)string;
- (NSArray*) subpathsAtPath: (NSString*)path;
- (BOOL) fileManager: (NSFileManager*)manager shouldProceedAfterError: (NSDictionary*)errorInfo;
- (BOOL) fileManager: (NSFileManager*)manager willProcessPath: (NSString*)path;