Avatar
omochimetaru 9/18/2024 6:26 AM
Problematic Code: import Foundation let dir = URL(fileURLWithPath: "") print(dir.path) // => /tmp/ee78646dddfd6304 let file = dir.appendingPathComponent("main.swift") print(f...
6:27 AM
@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)