Path
A simple representation of a path in the file system.
struct Path
A simple representation of a path in the file system.
struct Path
import PackagePlugin
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A 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: 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: 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.