diff --git a/conn_test.go b/conn_test.go index 0ebc562..130d2c6 100644 --- a/conn_test.go +++ b/conn_test.go @@ -173,7 +173,7 @@ func (mock *ftpMock) listen() { mock.dataConn.Wait() mock.printfLine("150 Opening ASCII mode data connection for file list") - mock.dataConn.write([]byte("-rw-r--r-- 1 ftp wheel 0 Jan 29 10:29 lo")) + mock.dataConn.write([]byte("-rw-r--r-- 1 ftp wheel 0 Jan 29 10:29 lo\r\ntotal 1")) mock.printfLine("226 Transfer complete") mock.closeDataConn() case "NLST": diff --git a/ftp.go b/ftp.go index ecb9bad..27324a5 100644 --- a/ftp.go +++ b/ftp.go @@ -640,9 +640,7 @@ func (c *ServerConn) List(path string) (entries []*Entry, err error) { now := time.Now() for scanner.Scan() { entry, errParse := parser(scanner.Text(), now, c.options.location) - if errParse != nil { - errs = multierror.Append(errs, errParse) - } else { + if errParse == nil { entries = append(entries, entry) } }