fix path.join undefined
This commit is contained in:
parent
ad10456a4a
commit
880d06b1b8
|
@ -3,6 +3,7 @@ package paxan
|
||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jlaffaye/ftp"
|
"github.com/jlaffaye/ftp"
|
||||||
|
@ -34,7 +35,7 @@ func DownloadFTP(user string, password string, path string) error {
|
||||||
}
|
}
|
||||||
defer res.Close()
|
defer res.Close()
|
||||||
|
|
||||||
outFile, err := os.Create(path.join(path, file.Name))
|
outFile, err := os.Create(filepath.Join(path, file.Name))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue