Avatar
@swift-6.0.3 @swift-5.10.1 import Foundation let url = URL(string:"s:/foo[]")! let comps = URLComponents(url: url, resolvingAgainstBaseURL: true)! print(url) print(url.path) print(comps.string) print(comps.path) print(comps.percentEncodedPath)