You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@spevans Indeed, you're right, I wasn't aware of NSURL symlink resolutions. But it doesn't change the fact that there is a behavior mismatch. The /home should be prepended to the "relative" part of the path the way /Users is in macOS Foundation's
nb: I editted the description to specify this mismatch
Additional Detail from JIRA
md5: b52a603e5db1e76f792e334b231fe6f5
Issue Description:
The creation of a relative path using NSURL(fileURLWithPath: ) gives inconsistent behavior between Linux and macOS platforms, running the following:
under macOS, running it under "/Users" gives:
Whereas under Linux, running under "/home" gives:
The /home doesn't get prepended as the /Users was in macOS
The Swift -version outputs gives under macOS:
And under Linux (which is the package available here: https://swift.org/builds/swift-5.2.4-release/ubuntu1604/swift-5.2.4-RELEASE/swift-5.2.4-RELEASE-ubuntu16.04.tar.gz):
The text was updated successfully, but these errors were encountered: