A file system-specific representation of the receiver.
- iOS 2.0+
- macOS 10.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
getFileSystemRepresentation(_:maxLength:) if it needs to store the representation outside of the memory context in which the representation was created.
characterConversionException 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).