Latest 0.0.1
Homepage https://github.com/nhfc99/NHFFileUtils
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

介绍

用于I/O常用方法

安装

  • pod ‘NHFFileUtils’
  • 手动下载然后将文件夹拖至工程中即可

使用方法

+(NSString)AppBasePath:(NSString)pathtype;

/**

  • 获取app中document路径
  • @param filename
  • @return
    /
    +(NSString
    )AppBaseDocumentPath:(NSString*)filename;

/**

  • 获取app中resource路径
  • @param filename
  • @return
    /
    +(NSString
    )AppBaseResourcePath:(NSString*)filename;

/**

  • 测试某个目录是否存在
  • @return
    */

    • (BOOL)testDicExist:(NSString*)dicPath;

/**

  • 创建一个目录
  • @param dicPath
    */

    • (void)createDic:(NSString*)dicPath;

/**

  • 删除文件夹及文件级内的文件
  • @param dicPath
    */

    • (void)deleteDicsAndFiles:(NSString*)dicPath;

/**

  • 拷贝一个目录到另外的一个地方
  • @param filePath
  • @param toFilePath
    */

    • (void)copyFile:(NSString)filePath toFilePath:(NSString)toFilePath;

/**

  • 获取文件名的扩展名
  • @param fileName
  • @return
    */

    • (NSString )fileExtString:(NSString )fileName;

Latest podspec

{
    "name": "NHFFileUtils",
    "version": "0.0.1",
    "summary": "u7528u4e8eI/Ou5e38u7528u65b9u6cd5",
    "homepage": "https://github.com/nhfc99/NHFFileUtils",
    "license": "MIT",
    "authors": {
        "u725bu5b8fu98de": "[email protected]"
    },
    "source": {
        "git": "https://github.com/nhfc99/NHFFileUtils.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "File+Utils/*.{h,m}",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This