Avatar
Avatar
omochimetaru
@swift-6.0.3 import Foundation let file = URL(fileURLWithPath: "main.swift") let dir = file.deletingLastPathComponent() print(dir.path) print(dir.appendingPathComponent("main.swift").path)
/tmp/89b8352b9bf3a052 /main.swift