Instance Method

appendingPathComponent(_:isDirectory:)

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

Declaration

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

Parameters

pathComponent

The path component to add.

isDirectory

If true, then a trailing / is added to the resulting path.

See Also

Adding Path Components

func appendPathComponent(String)

Appends a path component to the URL.

func appendPathComponent(String, isDirectory: Bool)

Appends a path component to the URL.

func appendingPathComponent(String) -> URL

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