Instance Method

deletePathExtension()

Returns a URL constructed by removing any path extension.

Declaration

mutating func deletePathExtension()

Discussion

If the URL has an empty path (e.g., http://www.example.com), then this function will do nothing.

See Also

Removing a Path Extension

func deletingPathExtension() -> URL

Returns a URL constructed by removing any path extension.