Re: Validity of a path
Re: Validity of a path
- Subject: Re: Validity of a path
- From: "Sherm Pendley" <email@hidden>
- Date: Sun, 6 Jan 2008 15:03:57 -0500
On Jan 6, 2008 2:55 PM, Eric PETIT <email@hidden> 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 ?
NSFileManager has methods to check for various definitions of "valid":
-fileExistsAtPath:, isReadableFileAtPath:, isWritableFileAtPath:, etc.
sherm--
_______________________________________________
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