Shared iOS sandbox file management

Source: Internet
Author: User

  filehelp.h//  yufilehelp////  created by yuzhx on 15/ 8/2.//  copyright  (c)  2015 year  bruceyu. all rights reserved.//#import  <Foundation/Foundation.h> @interface  FileHelp : NSObjecttypedef void  (^ Fileobjectblock) (nsstring* m_filepath,bool statuscode);/** *  file name modification   (default in Zkfilepath   file operation)  * *  @param  resourceFileName  Original file name  * *  @param  name   New file name  * *  @return   (BOOL)  **/+ (nsstring*) Modifyfilename: (nsstring*) Resourcefilename newfilename: (nsstring*) name;/** *  get the size of a single file  * *  @param   Path to the filepath  file  * *  @return   return file size  **/+ (Long long)  filesizeatpath: ( nsstring*)  filePath;/** *   Traverse folder to get the folder size, * *   @param  filepath   Path to the folder  * *   @return   Returns the folder size (how many m)  */+  (float )  foldersizeatpath: (nsstring*)  folderPath;/** *  Read all the file paths in Files  * *  @return   Return all file attributes dic **/+  (nsmutablearray*) getfilepathindocumentsdir;/** *  Create a directory to save files to documents  * *  @param  directories   Folder name  * *  @return   Return folder path created successfully  **/+  (nsstring*) Createfiledirectories: ( nsstring*) directories;/** *  Create the directory where you want to save the file to TMP  * *  @param  Directories  folder name  * *  @return   Return to the folder path for successful creation  **/+  (nsstring*) createtempdirectories: (nsstring*) directories;/** *  Delete sandbox   files or folders  * *  @param  FilePath  file paths that need to be deleted  *  *  @return   Return operation result (BOOL)  **/+  (BOOL) removeItemAtPath: (nsstring*) FilePath; @end



Https://github.com/6357/YUFileHelp

Shared iOS sandbox file management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.