diff --git a/ftp.go b/ftp.go index 5c5b3a8..c297ced 100644 --- a/ftp.go +++ b/ftp.go @@ -155,6 +155,9 @@ func parseListLine(line string) (*Entry, error) { } e.Name = strings.Join(fields[8:], " ") + fileSize, _ := strconv.Atoi(fields[4]) + e.Size = uint64(fileSize) + return e, nil }