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"
|
"time"
|
||||||
"flag"
|
"flag"
|
||||||
"log"
|
"log"
|
||||||
"path/filepath"
|
|
||||||
"goftp.io/server"
|
"goftp.io/server"
|
||||||
"github.com/ProtonMail/gopenpgp/v3/crypto"
|
"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) {
|
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…")
|
log.Printf("ReadAll…")
|
||||||
contents, err := ioutil.ReadAll(data)
|
contents, err := ioutil.ReadAll(data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user