Avatar
Avatar
omochimetaru
@swift-6.0.3 @swift-5.10.1 import Foundation let a = URL(fileURLWithPath: "common.ts") let dir = a.deletingLastPathComponent() let dirPath = dir.relativePath print("dirPath='\(dirPath)'") let mod = dir.appendingPathComponent("common.ts") print("mod='\(mod.path)'")
swift510 BOT 9/18/2024 3:18 AM
dirPath='.' mod='/tmp/83382a8d426eca4/common.ts'