views:

3571

answers:

2

I want to quickly check to see if a file exists in my iPhone app's Documents directory (or any path for that matter). I can enumerate through the directory's files, or I can try to open a specific file. What's the fastest way? I just need to know if the file is there or if it does not exist.

+42  A: 
BOOL fileExists = [[NSFileManager defaultManager] fileExistsAtPath:somePath];
rein
love short answers
Elijah
A: 

Does it works with URL path ?

Benjamin
This is a comment, not an answer.
Gary Willoughby