IOS How to Check if writable, readable and executable

NSFileManager *fileManager = [NSFileManager defaultManager];
if ([fileManager isWritableFileAtPath:@"FilePath"]) {
      NSLog(@"isWritable");
   }
   if ([fileManager isReadableFileAtPath:@"FilePath"]) {
      NSLog(@"isReadable");
   }
   if ( [fileManager isExecutableFileAtPath:@"FilePath"]){
      NSLog(@"is Executable");
   } 

Comments

Popular posts from this blog

Java : Variables Declaring

SQL Self JOIN