getFileSystemRepresentation(_:maxLength:)
Fills the provided buffer with a C string representing a local file system path.
Declaration
func getFileSystemRepresentation(_ buffer: UnsafeMutablePointer<CChar>, maxLength maxBufferLength: Int) -> BoolParameters
- buffer:
A buffer large enough to hold the path. On return, contains a null-terminated C string in file system representation.
- maxBufferLength:
The size of
bufferin bytes (typicallyMAXPATHLENorPATH_MAX).
Return Value
Returns true if the URL could be converted into a file system representation, otherwise false.
Discussion
The file system representation format is described in File Encodings and Fonts.
See Also
Creating a URL object
init(string:)init(string:encodingInvalidCharacters:)init(string:relativeTo:)fileURL(withPath:isDirectory:)init(fileURLWithPath:isDirectory:)fileURL(withPath:relativeTo:)init(fileURLWithPath:relativeTo:)fileURL(withPath:isDirectory:relativeTo:)init(fileURLWithPath:isDirectory:relativeTo:)fileURL(withPath:)init(fileURLWithPath:)fileURL(withPathComponents:)init(resolvingAliasFileAt:options:)init(resolvingBookmarkData:options:relativeTo:bookmarkDataIsStale:)fileURL(withFileSystemRepresentation:isDirectory:relativeTo:)