Avatar
@swift-5.10.1 @swift-6.0.3 @swift-main import Foundation let url = URL(fileURLWithPath: "/tmp/x") print(url.deletingPathExtension().appendingPathExtension(url.pathExtension))