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")
|
||||
|
||||
files, err := c.List("")
|
||||
files, err := c.List("/")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue