Instance Method

strings(by​Appending​Paths:​)

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

Declaration

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

Parameters

paths

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

Return Value

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

Discussion

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