Look into this...
Code:
+ (NSString *) appRootPathString
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString * documentsDirectory = [paths objectAtIndex: 0];
return documentsDirectory;
}
Look into the NSFileManager class...
Code:
[[NSFileManager defaultManager] fileExistsAtPath: projectFolder]
The variable projectFolder is an ivar in my class that I've already set in other code.
Oh, and look at the 'Working with Paths' section of the NSString class.