This commit is contained in:
Chen Xiao 2013-02-17 11:15:55 +08:00
parent 47b339b57b
commit 6c87b0b156

3
ftp.go
View File

@ -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
}