Don't do anything with the FTP destPath

This commit is contained in:
clerie 2024-11-24 16:57:06 +01:00
parent 9632b95e11
commit 58e99d6dae

View File

@ -8,7 +8,6 @@ import (
"time"
"flag"
"log"
"path/filepath"
"goftp.io/server"
"github.com/ProtonMail/gopenpgp/v3/crypto"
)
@ -98,7 +97,7 @@ func (driver *ForwarderDriver) GetFile(path string, offset int64) (int64, io.Rea
}
func (driver *ForwarderDriver) PutFile(destPath string, data io.Reader, appendData bool) (int64, error) {
log.Printf("Forwarding %v (%v)", destPath, filepath.Base(destPath))
log.Printf("Receiving %v", destPath)
log.Printf("ReadAll…")
contents, err := ioutil.ReadAll(data)