From 8cf67d00e08f4df1dc34cf9876a3382913eb2804 Mon Sep 17 00:00:00 2001 From: dom Date: Sat, 18 Jul 2020 09:25:00 +0200 Subject: [PATCH] set root path --- ftpActions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ftpActions.go b/ftpActions.go index 538f53f..cec0594 100644 --- a/ftpActions.go +++ b/ftpActions.go @@ -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 }