IOS detects whether the file is readable, writable and executable

From , 5 Years ago, written in Objective-C, viewed 188 times.
URL https://pastebin.vip/view/ff7a2112
  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

Reply to "IOS detects whether the file is readable, writable and executable"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website