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
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 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

