Avatar
omochimetaru 9/18/2024 3:18 AM
つまりね・・・
3:20 AM
@swift-5.10.1 @swift-6.0.3 import Foundation let a = URL(fileURLWithPath: "common.ts") let dir = a.deletingLastPathComponent() let dirA = dir.appendingPathComponent(a.relativePath) print("dirA abs='\(dirA.path)'") print("dirA rel='\(dirA.relativePath)'")