Check if file exists at URL instead of path

if (![fileManager fileExistsAtPath:[storeURL path]]) 
...

From the documentation:

If this URL object contains a file URL (as determined with isFileURL),
the return value of this method is suitable for input into methods of
NSFileManager or NSPathUtilities. If the path has a trailing slash it
is stripped.

Leave a Comment

tech