Instance Method
withUnsafeFileSystemRepresentation(_:)
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
Passes the URL’s path in file system representation to
block.func withUnsafeFileSystemRepresentation<ResultType>(_ block: (UnsafePointer<Int8>?) throws -> ResultType) rethrows -> ResultType
Discussion
File system representation is a null-terminated C string with canonical UTF-8 encoding.
Note
The pointer is not valid outside the context of the block.