fix path.join undefined
This commit is contained in:
parent
ad10456a4a
commit
880d06b1b8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue