diff --git a/ftpActions.go b/ftpActions.go index b128cda..e451ce1 100644 --- a/ftpActions.go +++ b/ftpActions.go @@ -29,6 +29,9 @@ func DownloadFTP(user string, password string, path string) error { } for _, file := range files { + if file.Type != ftp.EntryTypeFile { + continue + } res, err := c.Retr(file.Name) if err != nil { return err