forked from TrueCloudLab/rclone
vendor: update all dependencies
This commit is contained in:
parent
3f0789e2db
commit
08021c4636
2474 changed files with 435818 additions and 282709 deletions
6
vendor/github.com/pkg/sftp/server.go
generated
vendored
6
vendor/github.com/pkg/sftp/server.go
generated
vendored
|
@ -240,6 +240,12 @@ func handlePacket(s *Server, p interface{}) error {
|
|||
}},
|
||||
})
|
||||
case *sshFxpOpendirPacket:
|
||||
if stat, err := os.Stat(p.Path); err != nil {
|
||||
return s.sendError(p, err)
|
||||
} else if !stat.IsDir() {
|
||||
return s.sendError(p, &os.PathError{
|
||||
Path: p.Path, Err: syscall.ENOTDIR})
|
||||
}
|
||||
return sshFxpOpenPacket{
|
||||
ID: p.ID,
|
||||
Path: p.Path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue