Return to Snippet

Revision: 31865
at September 14, 2010 23:34 by BenClayton


Initial Code
// check file exists..
BOOL isDirectory = NO;
if ( [[NSFileManager defaultManager] fileExistsAtPath:path isDirectory: &isDirectory ] ) {
// use the file
} else {
// file not there
}

Initial URL


Initial Description


Initial Title
iPhone SDK: Check file exists

Initial Tags


Initial Language
Objective C