Path

struct Path : Codable, Equatable, Hashable

The Path

  • The raw value

    Declaration

    Swift

    var rawValue: String
  • The last path component

    Declaration

    Swift

    var lastComponent: String? { get }
  • Appends a path component

    Declaration

    Swift

    mutating func append(_ pathComponent: String)

    Parameters

    pathComponent

    The path component that should be appended

  • Returns a new Path by appending the path component

    Declaration

    Swift

    func appending(_ pathComponent: String) -> Kit.Directory.Path

    Parameters

    pathComponent

    The path component that should be appended

    Return Value

    The new Path