strings(byAppendingPaths:)
Returns an array of strings made by separately appending to the receiver each string in a given array.
Declaration
func strings(byAppendingPaths paths: [String]) -> [String]Parameters
- paths:
An array of
NSStringobjects specifying paths to add to the receiver.
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
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:)pathComponentscompletePath(into:caseSensitive:matchesInto:filterTypes:)fileSystemRepresentationgetFileSystemRepresentation(_:maxLength:)isAbsolutePathlastPathComponentpathExtensionabbreviatingWithTildeInPathappendingPathComponent(_:)appendingPathExtension(_:)deletingLastPathComponentdeletingPathExtensionexpandingTildeInPathresolvingSymlinksInPath