Today have been playing with
Foundation and I noticed a strange behaviour when changing the
I created a small playground that reproduces this issue
import Foundation FileManager.default.changeCurrentDirectoryPath("/Users") let directoryURL = URL(fileURLWithPath: "../usr") let process = Process() process.currentDirectoryURL = directoryURL print(directoryURL.path) print(process.currentDirectoryURL?.path)
I don't really understand why
/Users/usr, it's like the
../usr was ignored.
Am I missing something ?