Contents

append(_:)

Append components on to the end of this path.

Declaration

mutating func append<C>(_ components: C) where C : Collection, C.Element == FilePath.Component

Discussion

Example:

var path: FilePath = "/"
path.append(["usr", "local"])     // path is "/usr/local"
let otherPath: FilePath = "/bin/ls"
path.append(otherPath.components) // path is "/usr/local/bin/ls"