Path
A simple representation of a path in the file system.
struct PathA simple representation of a path in the file system.
struct Pathimport PackagePluginprotocol CopyableA type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol DecodableA type that can decode itself from an external representation.
protocol EncodableA type that can encode itself to an external representation.
protocol EquatableA type that can be compared for value equality.
protocol Escapableprotocol Hashable : EquatableA type that can be hashed into a Hasher to produce an integer hash value.
init(_ string: String) Initializes the path from the contents a string, which should be an absolute path in platform representation.
init(from decoder: any Decoder) throws var description: String { get }var `extension`: String? { get }The filename extension, if any (without any leading dot).
var lastComponent: String { get }The last path component (including any extension).
var stem: String { get }The last path component (without any extension).
var string: String { get }A string representation of the path.
func appending(_ components: String...) -> Path The result of appending one or more path components.
func appending(_ components: [String]) -> Path The result of appending one or more path components.
func appending(subpath: String) -> Path The result of appending a subpath, which should be a relative path in platform representation.
func encode(to encoder: any Encoder) throws func removingLastComponent() -> Path The path except for the last path component.
static func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.