Objective-c NSFileManager
http://blog.csdn.net/ztp800201/article/details/7814812
NSFileManager常用操作
-
-(BOOL)contentsAtPath:path
-
-(BOOL)createFileAtPath:path contents:(NSData*)data attributes:attr
-
-(BOOL)removeFileAtPath:path handler:handler
-
-(BOOL)movePath:from toPath:to handler:handler
-
-(BOOL)contentsEqualAtPath:path1 andPath:path2
-
-(BOOL)fileExistsAtPath:path
-
-(BOOL)isReadableFileAtPath:path
-
-(BOOL)isWritableFileAtPath:path
-
-(NSDictionary*)fileAttributesAtPath:path traverseLink:(BOOL)flag
-
-(BOOL)changeFileAtributes:attr atPath:path
-
-
NSFileManager目录操作
-
-(NSString*)currentDirectoryPath
-
-(BOOL)changeCurrentDirectoryPath:path
-
-(BOOL)copyPath:from toPath:to handler:handler
-
-(BOOL)createDirectoryAtPath:path attributes:attr
-
-(BOOL)fileExistsAtPath:path isDirectory:(BOOL*)flag
-
-(NSArray*)directoryContentsAtPath:path
-
-(NSDirectoryEnumerator*)enumeratorAtPath:path
-
-(BOOL)removeFielPath:path handler:handler
-
-(BOOL)movePath:from toPath:to handler:handler
-
-
-(NSString*)NSUserName
-
-(NSString*)NSFullUserName
-
-(NSString*)NSHomeDirectory
-
-(NSString*)NSHomeDirectoryForUser:(NSString*)user
-
-(NSString*)NSTemporaryDirectory
-
-
+(NSString*)pathWithComponents:components
-
-(NSArray*)pathComponents
-
-(NSString*)lastPathComponents
-
-(NSString*)pathExtension
-
-(NSString*)stringByAppendingPathComponents:path
-
-(NSStirng*)stringByAppendingPathExtension:ext
-
-(NSString*)stringByDeletingLastPathComponents
-
-(NSString*)stringByDeletingPathExtension
-
-(NSString*)stringByExpandingTildeInPath
-
-(NSString*)stringByStandardizingPath
-
阅读(612) | 评论(0) | 转发(0) |