SFTP: Correctly inform client about unsupported commands (#19735)

This commit is contained in:
Olli Janatuinen
2024-05-14 12:29:30 +02:00
committed by GitHub
parent 9b219cd646
commit 534e7161df

View File

@@ -342,7 +342,7 @@ func (f *sftpDriver) Filecmd(r *sftp.Request) (err error) {
switch r.Method {
case "Setstat", "Rename", "Link", "Symlink":
return NotImplemented{}
return sftp.ErrSSHFxOpUnsupported
case "Rmdir":
bucket, prefix := path2BucketObject(r.Filepath)