Contents

append(components:directoryHint:)

Appends multiple path components to the URL, with a hint for handling directory awareness.

Declaration

mutating func append<S>(components: S..., directoryHint: URL.DirectoryHint = .inferFromPath) where S : StringProtocol

Parameters

  • components:

    The path components to add, as a variadic parameter.

  • 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.

See Also

Adding path components