[Objective-C] ios检测文件是否可读、是否可写、是否可执行的代码 →→→→→进入此内容的聊天室

来自 , 2020-01-10, 写在 Objective-C, 查看 144 次.
URL http://www.code666.cn/view/b2005ea3
  1.    if ([fileManager isWritableFileAtPath:@"FilePath"]) {
  2.       NSLog(@"isWritable");
  3.    }
  4.    if ([fileManager isReadableFileAtPath:@"FilePath"]) {
  5.       NSLog(@"isReadable");
  6.    }
  7.    if ( [fileManager isExecutableFileAtPath:@"FilePath"]){
  8.       NSLog(@"is Executable");
  9.    }
  10. //objectc/8540

回复 "ios检测文件是否可读、是否可写、是否可执行的代码"

这儿你可以回复上面这条便签

captcha