Don't do anything with the FTP destPath
This commit is contained in:
parent
9632b95e11
commit
58e99d6dae
3
main.go
3
main.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user