diff --git a/ftp.go b/ftp.go index 673a5ae..24e0450 100644 --- a/ftp.go +++ b/ftp.go @@ -417,7 +417,7 @@ func (c *ServerConn) Stor(path string, r io.Reader) error { return err } - _, _, err = c.conn.ReadCodeLine(StatusClosingDataConnection) + _, _, err = c.conn.ReadResponse(StatusClosingDataConnection) return err }