开发者

How to check if directory exists at particular path programmatically in Objective-C?

开发者 https://www.devze.com 2023-01-14 07:22 出处:网络
Please tell me how to Get the current working directory\'s absolute path If this is the absolute path /Users/iphone/Documents/Archive

Please tell me how to

  1. Get the current working directory's absolute path

  2. If this is the absolute path /Users/iphone/Documents/Archive

    how to convert this path to relative path?

  3. How to check if directory exists at patricular path programmatically in Objective-C and if it doesn't exist how to create it programmatically? i need to do this using relative path.

Thank 开发者_如何转开发You.


The main source of information is the Apple File System Programming Guide

From there or subtopics you get information for your questions.

1) NSFileManager currentDirectoryPath

3) NSFileManager fileExistsAtPath:isDirectory:

0

精彩评论

暂无评论...
验证码 换一张
取 消