博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
创建文件夹
阅读量:6871 次
发布时间:2019-06-26

本文共 709 字,大约阅读时间需要 2 分钟。

NSString *homePath = NSHomeDirectory();    NSString *systemLogPath = [homePath stringByAppendingPathComponent:@"Documents/DearMob/SystemLog"];    NSLog(@"%@",systemLogPath);    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);    NSString *documentsPath = [paths objectAtIndex:0];        NSFileManager *fileManager = [NSFileManager defaultManager];    NSString *testDirectory = [documentsPath stringByAppendingPathComponent:@"DearMob/SystemLog"];    NSLog(@"%@",testDirectory);    // 创建目录    BOOL res=[fileManager createDirectoryAtPath:systemLogPath withIntermediateDirectories:YES attributes:nil error:nil];

 

转载于:https://www.cnblogs.com/ZhangYuGe/p/4501076.html

你可能感兴趣的文章
server-U上传中文文件乱码
查看>>
编程珠玑:用后缀数组寻找最长重复字符串
查看>>
Java写到.txt文件,如何实现换行
查看>>
通过http proxy访问git 服务
查看>>
JavaScript之isNaN()函数讲解
查看>>
MPlayer源代码分析
查看>>
获取音视频文件AVMetadata数据
查看>>
sql serve 创建序列
查看>>
模型层的生成
查看>>
关于APP接口设计
查看>>
【VI】如何再执行上一个(历史)命令(已解决)
查看>>
KendoUI系列:DropDownList
查看>>
Axure7.0汉化方法
查看>>
我的MYSQL学习心得(九)
查看>>
JavaScript高级程序设计学习笔记--DOM
查看>>
Python易学就会(五)turtle绘制椭圆与递归
查看>>
echarts map地图设置外边框或者阴影
查看>>
webpack4学习总结
查看>>
vue.js vue-router history模式路由,域名二级目录子目录nginx配置
查看>>
web前端规范
查看>>