---
title: "append(_:)"
framework: system
role: symbol
role_heading: Instance Method
path: "system/filepath/append(_:)-66nkr"
---

# append(_:)

Append components on to the end of this path.

## Declaration

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

## Discussion

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"
