Instance Method

appendPathComponent(_:isDirectory:)

Appends a path component to the URL.

Declaration

mutating func appendPathComponent(_ pathComponent: String, isDirectory: Bool)

Parameters

pathComponent

The path component to add.

isDirectory

Use true if the resulting path is a directory.

See Also

Adding Path Components

func appendPathComponent(String)

Appends a path component to the URL.

func appendingPathComponent(String) -> URL

Returns a URL constructed by appending the given path component to self.

func appendingPathComponent(String, isDirectory: Bool) -> URL

Returns a URL constructed by appending the given path component to self.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software