开发者

create, delete folders and cut and copy files

开发者 https://www.devze.com 2023-02-12 16:52 出处:网络
is there any tutorials to do the following: create and delete folders at the main bundle of my application

is there any tutorials to do the following:

  • create and delete folders at the main bundle of my application
  • remove folders from the Document开发者_如何学Go folder to specific folder
  • list all the folders at the main bundle

any suggestion and help please


Read the NSFileManager class reference.

You can get a NSFileManager instance by doing:

NSFileManager *fileManager = [NSFileManager defaultManager];

By example you can delete a file by:

NSError *error;
[fileManager removeItemAtPath:myPath error:&error];

See here the class reference:
Class Ref

0

精彩评论

暂无评论...
验证码 换一张
取 消