// 创建一个文件管理对象
NSFileManager *manager = [NSFileManager defaultManager];
// 获取path文件/文件夹的属性
- (NSDictionary)attributesOfItemAtPath:(NSString *)path error:(NSError *)error;
// 获取path的当前子路径
- (NSArray)contentsOfDirectoryAtPath:(NSString *)path error:(NSError *)error;
// 判断path文件/文件夹是否存在
- (BOOL)fileExitsAtPath:(NSString *)path;
// 判断path文件/文件夹是否存在,并判断是文件还是文件夹
- (BOOL)fileExitsAtPath:(NSString *)path isDirectory:(BOOL)isDict;
// 判断文件是否可读
-(BOOL)isReadableFileAtPath:(NSString *)path;
// 判断文件是否可写
- (BOOL)isWritableFileAtPath:(NSString *)path;
// 判断文件是否可以删除
- (BOOL)isDeletableFileAtPath:(NSString *)path;
// 获取文件内容
- (NSData)contentsAtPath:(NSString *)path;
// 获取path的所有子路径
- (NSArray)subpathsAtPath:(NSString *)path;
- (NSArray)subpathsOfDirectoryAtPath:(NSString *)path error(NSError *)error;