Re: Validity of a path
Re: Validity of a path
- Subject: Re: Validity of a path
- From: Gregory Weston <email@hidden>
- Date: Sun, 6 Jan 2008 17:27:54 -0500
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden