• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Validity of a path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Validity of a path (From: Eric PETIT <email@hidden>)

  • Prev by Date: Validity of a path
  • Next by Date: Merging Core Data models from plugins
  • Previous by thread: Validity of a path
  • Next by thread: Re: Validity of a path
  • Index(es):
    • Date
    • Thread