append(path:directoryHint:)
Appends a path to the URL, with a hint for handling directory awareness.
Declaration
mutating func append<S>(path: S, directoryHint: URL.DirectoryHint = .inferFromPath) where S : StringProtocolParameters
- path:
The path component to add.
- directoryHint:
A hint to the initializer to indicate whether the path is a directory, or to instruct the method to make this determination. Defaults to Inferfrompath.
Discussion
This method doesn’t percent-encode any path separators (/) in the path component before appending the component to the path. If you want this encoding, use append(component:directoryHint:) instead.
See Also
Adding path components
append(component:directoryHint:)appendPathComponent(_:)appendPathComponent(_:isDirectory:)appending(path:directoryHint:)appending(component:directoryHint:)appendingPathComponent(_:)appendingPathComponent(_:isDirectory:)append(components:directoryHint:)appending(components:directoryHint:)appendPathComponent(_:conformingTo:)appendingPathComponent(_:conformingTo:)