Skip navigation.
 
mlRe: Validity of a path
FROM : Gregory Weston
DATE : Sun Jan 06 23:27:54 2008

Eric PETIT wrote:

> The path of a file is initialized in a NSString.
> I want to know if this path is valid.
> I can try to open the file and test the return value to test the
> validity of this path but is there another method to know if this
> path is valid ?
> Thanks.


If you're looking to see if the string identifies a file that exists, 
NSFileManager offers fileExistsAtPath:.

G

Related mailsAuthorDate
mlValidity of a path Eric PETIT Jan 6, 20:55
mlRe: Validity of a path Sherm Pendley Jan 6, 21:03
mlRe: Validity of a path I. Savant Jan 6, 21:08
mlRe: Validity of a path Gregory Weston Jan 6, 23:27
mlRe:validity of a path Shripada Hebbar Jan 7, 06:49