DekGenius.com
[ Team LiB ] Previous Section Next Section

NSFileManager Mac OS X 10.0

This class provides an interface that clients can use to interact with the filesystem. This provides all of the standard file and directory manipulation facilities for copying, moving, changing working directories, and more.

figs/cocn_1340.gif

@interface NSFileManager : NSObject
 // Class Methods
   + (NSFileManager *)defaultManager;
 // Instance Methods
   - (BOOL)changeCurrentDirectoryPath:(NSString *)path;
   - (BOOL)changeFileAttributes:(NSDictionary *)attributes atPath:(NSString *)path;
   - (NSArray *)componentsToDisplayForPath:(NSString *)path;
   - (NSData *)contentsAtPath:(NSString *)path;
   - (BOOL)contentsEqualAtPath:(NSString *)path1 andPath:(NSString *)path2;
   - (BOOL)copyPath:(NSString *)src toPath:(NSString *)dest  handler:(id)handler;
   - (BOOL)createDirectoryAtPath:(NSString *)path attributes:(NSDictionary *)attributes;
   - (BOOL)createFileAtPath:(NSString *)path contents:(NSData *)data attributes:(NSDictionary *)attr;
   - (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)yorn;
   - (BOOL)fileExistsAtPath:(NSString *)path;
   - (BOOL)fileExistsAtPath:(NSString *)path isDirectory:(BOOL *)isDirectory;
   - (NSDictionary *)fileSystemAttributesAtPath:(NSString *)path;
   - (const char *)fileSystemRepresentationWithPath:(NSString *)path;
   - (BOOL)isDeletableFileAtPath:(NSString *)path;
   - (BOOL)isExecutableFileAtPath:(NSString *)path;
   - (BOOL)isReadableFileAtPath:(NSString *)path;
   - (BOOL)isWritableFileAtPath:(NSString *)path;
   - (BOOL)linkPath:(NSString *)src toPath:(NSString *)dest handler:(id)handler;
   - (BOOL)movePath:(NSString *)src toPath:(NSString *)dest handler:(id)handler;
   - (NSString *)pathContentOfSymbolicLinkAtPath:(NSString *)path;
   - (BOOL)removeFileAtPath:(NSString *)path handler:(id)handler;
   - (NSString *)stringWithFileSystemRepresentation:(const char *)str length:(unsigned)len;
   - (NSArray *)subpathsAtPath:(NSString *)path;

    [ Team LiB ] Previous Section Next Section