Returns a C-string representation of a given path that properly encodes Unicode strings for use by the file system.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
A string object containing a path to a file. This parameter must not be
nilor contain the empty string.
A C-string representation of
path that properly encodes Unicode strings for use by the file system.
Use this method if your code calls system routines that expect C-string path arguments. If you use the C string beyond the scope of the current autorelease pool, you must copy it.
This method raises an exception if
nil or contains the empty string. This method also throws an exception if the conversion of the string fails.