Contents

string

Creates a string by interpreting the path’s content as UTF-8 on Unix and UTF-16 on Windows.

Declaration

var string: String { get }

Discussion

This property is equivalent to calling String(decoding: path)