Merge pull request #633 from greatroar/dev-v2-errors

Don't translate StatusPacket to os.Err(NotExist|Permission)
This commit is contained in:
Cassondra Foesch 2025-06-02 16:55:04 +00:00 committed by GitHub
commit 2d30c450c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -490,10 +490,6 @@ func statusToError(status *sshfx.StatusPacket, okExpected bool) error {
case sshfx.StatusEOF:
return io.EOF
case sshfx.StatusNoSuchFile:
return fs.ErrNotExist
case sshfx.StatusPermissionDenied:
return fs.ErrPermission
}
return status