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
Linux/Darwin provide various error codes like .fileReadNoSuchFile when provided with an empty path. However on Windows we currently throw .fileReadInvalidFileName errors. We should make these behaviors consistent. Originally SCL-F already threw .fileReadInvalidFileName but Darwin threw .fileReadNoSuchFile. With the swift rewrite of FileManager we updated Linux to match what Darwin does, but Windows has still diverged. We should update Windows to match the Linux/Darwin behavior so that we have consistency across our platforms
The text was updated successfully, but these errors were encountered:
Brought up at swiftlang/swift-corelibs-foundation#5074 (comment)
Linux/Darwin provide various error codes like
.fileReadNoSuchFile
when provided with an empty path. However on Windows we currently throw.fileReadInvalidFileName
errors. We should make these behaviors consistent. Originally SCL-F already threw.fileReadInvalidFileName
but Darwin threw.fileReadNoSuchFile
. With the swift rewrite ofFileManager
we updated Linux to match what Darwin does, but Windows has still diverged. We should update Windows to match the Linux/Darwin behavior so that we have consistency across our platformsThe text was updated successfully, but these errors were encountered: