fix path.join undefined

This commit is contained in:
dom 2020-07-18 09:09:55 +02:00
parent ad10456a4a
commit 880d06b1b8
1 changed files with 2 additions and 1 deletions

View File

@ -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
}