deletingLastPathComponent
A URL you create by removing the last path component from the receiver. (read-only)
Declaration
var deletingLastPathComponent: URL? { get }Discussion
If the receiver’s URL represents the root path, this property contains a copy of the original URL. Otherwise, if the original URL has only one path component, this property contains the empty string.