PEAR-FileManager-iOS 1.3.1

PEAR-FileManager-iOS 1.3.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2015

Maintained by Hiroki Umatani.



  • By
  • HirokiUmatani

Overview

This is the ios library to manipulate directories and files in application.

Installation

pod 'PEAR-FileManager-iOS'

Usage

initial
PEARFileManager *fileManager = [PEARFileManager sharedInstatnce];
fileManager.rootDir = k_ROOT_DIR_LIBRARY;

Create
[fileManager createDirectory:DIR_PATH permisson:PERMISSION];

[fileManager createFileWithData:pearImageData
                           filePath:[fileManager joinFileName:FILE_NAME inDirPath:DIR_PATH]
                          permisson:PERMISSION];


Copy
[fileManager copyFrompath:[fileManager joinFileName:FILE_NAME inDirPath:DIR_PATH]
                       toPath:[fileManager joinFileName:COPY_FILE_NAME inDirPath:DIR_PATH]];

Move
[fileManager moveFromPath:DIR_PATH
                       toPath:MOVE_DIR_PATH];

Delete
[fileManager deletePath:[fileManager joinFileName:FILE_NAME inDirPath:DIR_PATH]];

Documents

library document

Licence

MIT

Author

Hiroki Umatani