fix path.join undefined
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user