How to check if a directory exists on a specific path programmatically in Objective-C?

Please tell me how

  • Get current full catalog directory

  • If this is the absolute path / Users / IPhone / Documents / Archive

    how to convert this path to relative path?

  • How to check if a directory exists in a patricular URL programmatically in Objective-C, and if it does not exist, how to create it programmatically? I need to do this using a relative path.

Thank.

+3
source share
1 answer

The main source of information is Apple File System Programming Guide

.

1) NSFileManager currentDirectoryPath

3) NSFileManager fileExistsAtPath: isDirectory:

+11

Source: https://habr.com/ru/post/1762267/


All Articles