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