12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- //
- // RQFileManager.h
- // RQCommon
- //
- // Created by 张嵘 on 2018/11/21.
- // Copyright © 2018 张嵘. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- @interface RQFileManager : NSObject
- #pragma mark - File manager methods
- /**
- * 文件管理器
- */
- + (NSFileManager *)fileManager;
- /**
- * 该路径是否存在
- */
- + (BOOL)isPathExist:(NSString *)path;
- /**
- * 该文件是否存在
- */
- + (BOOL)isFileExist:(NSString *)path;
- /**
- * 该文件夹是否存在
- */
- + (BOOL)isDirectoryExist:(NSString *)path;
- /**
- * 移除该文件
- */
- + (BOOL)removeFile:(NSString *)path;
- /**
- * 创建目录
- */
- + (BOOL)createDirectoryAtPath:(NSString *)path;
- /**
- * 文件个数
- */
- + (NSUInteger)fileCountInPath:(NSString *)path;
- /**
- * 目录大小
- */
- + (unsigned long long)folderSizeAtPath:(NSString *)path;
- #pragma mark User directory methods
- /**
- * 应用文件路径
- */
- + (NSString *)appDocumentDirectoryPath;
- /**
- * 应用资源路径
- */
- + (NSString *)appResourcePath;
- /**
- * 应用缓存路径
- */
- + (NSString *)appCachesDirectoryPath;
- @end
|