Avatar
omochimetaru 9/18/2024 6:28 AM
@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)