Avatar
omochimetaru 9/18/2024 3:16 AM
これだ〜
3:18 AM
@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)'")