set root path
This commit is contained in:
parent
1adfc456be
commit
8cf67d00e0
|
@ -25,7 +25,7 @@ func DownloadFTP(user string, password string, path string) error {
|
||||||
|
|
||||||
//c.ChangeDir("desiredDir")
|
//c.ChangeDir("desiredDir")
|
||||||
|
|
||||||
files, err := c.List("")
|
files, err := c.List("/")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue