FROM : Sherm Pendley
DATE : Sun Jan 06 21:03:57 2008
On Jan 6, 2008 2:55 PM, Eric PETIT <<email_removed>> 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--
DATE : Sun Jan 06 21:03:57 2008
On Jan 6, 2008 2:55 PM, Eric PETIT <<email_removed>> 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--
| Related mails | Author | Date |
|---|---|---|
| Eric PETIT | Jan 6, 20:55 | |
| Sherm Pendley | Jan 6, 21:03 | |
| I. Savant | Jan 6, 21:08 | |
| Gregory Weston | Jan 6, 23:27 | |
| Shripada Hebbar | Jan 7, 06:49 |






Cocoa mail archive

