ignore directories
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user