appendingPathComponent(_:)
Returns a URL by appending the specified path component to self.
Declaration
func appendingPathComponent(_ pathComponent: String) -> URLParameters
- pathComponent:
The path component to add.
Discussion
For file URLs, this method may perform file system I/O to determine if the path component is a directory, and, if so, it appends a trailing slash /. Use appendingPathComponent(_:isDirectory:) if you know the component’s file system object type in advance.
New code should use appending(path:directoryHint:) instead of this method.
See Also
Adding path components
append(path:directoryHint:)append(component:directoryHint:)appendPathComponent(_:)appendPathComponent(_:isDirectory:)appending(path:directoryHint:)appending(component:directoryHint:)appendingPathComponent(_:isDirectory:)append(components:directoryHint:)appending(components:directoryHint:)appendPathComponent(_:conformingTo:)appendingPathComponent(_:conformingTo:)