---
title: "strings(byAppendingPaths:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsstring/strings(byappendingpaths:)"
---

# strings(byAppendingPaths:)

Returns an array of strings made by separately appending to the receiver each string in a given array.

## Declaration

```swift
func strings(byAppendingPaths paths: [String]) -> [String]
```

## Parameters

- `paths`: An array of NSString objects specifying paths to add to the receiver.

## Return Value

Return Value An array of string objects made by separately appending each string in paths to the receiver, preceded if necessary by a path separator.

## Discussion

Discussion Note that this method only works with file paths (not, for example, string representations of URLs). See appendingPathComponent(_:) for an individual example.

## See Also

### Working with Paths

- [path(withComponents:)](foundation/nsstring/path(withcomponents:).md)
- [pathComponents](foundation/nsstring/pathcomponents.md)
- [completePath(into:caseSensitive:matchesInto:filterTypes:)](foundation/nsstring/completepath(into:casesensitive:matchesinto:filtertypes:).md)
- [fileSystemRepresentation](foundation/nsstring/filesystemrepresentation.md)
- [getFileSystemRepresentation(_:maxLength:)](foundation/nsstring/getfilesystemrepresentation(_:maxlength:).md)
- [isAbsolutePath](foundation/nsstring/isabsolutepath.md)
- [lastPathComponent](foundation/nsstring/lastpathcomponent.md)
- [pathExtension](foundation/nsstring/pathextension.md)
- [abbreviatingWithTildeInPath](foundation/nsstring/abbreviatingwithtildeinpath.md)
- [appendingPathComponent(_:)](foundation/nsstring/appendingpathcomponent(_:).md)
- [appendingPathExtension(_:)](foundation/nsstring/appendingpathextension(_:).md)
- [deletingLastPathComponent](foundation/nsstring/deletinglastpathcomponent.md)
- [deletingPathExtension](foundation/nsstring/deletingpathextension.md)
- [expandingTildeInPath](foundation/nsstring/expandingtildeinpath.md)
- [resolvingSymlinksInPath](foundation/nsstring/resolvingsymlinksinpath.md)
