From 880d06b1b8f97985bda18faa683dbad1c94001ce Mon Sep 17 00:00:00 2001 From: dom Date: Sat, 18 Jul 2020 09:09:55 +0200 Subject: [PATCH] fix path.join undefined --- ftpActions.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ftpActions.go b/ftpActions.go index f90f75c..0125b0e 100644 --- a/ftpActions.go +++ b/ftpActions.go @@ -3,6 +3,7 @@ package paxan import ( "io" "os" + "path/filepath" "time" "github.com/jlaffaye/ftp" @@ -34,7 +35,7 @@ func DownloadFTP(user string, password string, path string) error { } defer res.Close() - outFile, err := os.Create(path.join(path, file.Name)) + outFile, err := os.Create(filepath.Join(path, file.Name)) if err != nil { return err }