func listDir(c *easyftp.Client) { r, err := c.List(".") if err != nil { fmt.Println("LIST: ", err) return } defer r.Close() io.Copy(os.Stdout, r) }