A file system-specific representation of the receiver.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The returned C string will be automatically freed just as a returned object would be released; your code should copy the representation or use
get if it needs to store the representation outside of the memory context in which the representation was created.
character if the receiver can’t be represented in the file system’s encoding. It also raises an exception if the receiver contains no characters.
Note that this method only works with file paths (not, for example, string representations of URLs).