Posted By

BenClayton on 09/14/10


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

umang_nine
cnathan


iPhone SDK: Check file exists


 / Published in: Objective C
 

  1. // check file exists..
  2. BOOL isDirectory = NO;
  3. if ( [[NSFileManager defaultManager] fileExistsAtPath:path isDirectory: &isDirectory ] ) {
  4. // use the file
  5. } else {
  6. // file not there
  7. }

Report this snippet  

You need to login to post a comment.