Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions internal/provider/remote_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,14 @@
if os.IsNotExist(err) {
return false, nil
}
// If the error is an SFTP status error and its Code is 10, treat as "not exists"
var se *sftp.StatusError
if errors.As(err, &se) {

Check failure on line 207 in internal/provider/remote_client.go

View workflow job for this annotation

GitHub Actions / Generate

undefined: errors

Check failure on line 207 in internal/provider/remote_client.go

View workflow job for this annotation

GitHub Actions / Build

undefined: errors
if se.Code == 10 /* sftp.sshFxNoSuchPath */ {
return false, nil
}
}

return false, err
}

Expand Down
Loading