From 6c87b0b156560e5ec143b22831578086d87ea18f Mon Sep 17 00:00:00 2001 From: Chen Xiao Date: Sun, 17 Feb 2013 11:15:55 +0800 Subject: [PATCH] BugFix --- ftp.go | 3 +++ 1 file changed, 3 insertions(+) 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 }