From faca79d4eacd42a8e482d460b3a5f992e4ad3efc Mon Sep 17 00:00:00 2001 From: jlaffaye Date: Sun, 8 May 2011 13:08:31 +0100 Subject: [PATCH] List() takes an argument. --- ftp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ftp.go b/ftp.go index 41567cd..8353715 100644 --- a/ftp.go +++ b/ftp.go @@ -128,14 +128,14 @@ func parseListLine(line string) (*Entry, os.Error) { return e, nil } -func (c *ServerConn) List() (entries []*Entry, err os.Error) { +func (c *ServerConn) List(path string) (entries []*Entry, err os.Error) { r, err := c.openDataConnection() if err != nil { return } defer r.Close() - c.conn.Cmd("LIST") + c.conn.Cmd("LIST %s", path) _, _, err = c.conn.ReadCodeLine(StatusAboutToSend) if err != nil { return