Brak opisu

johnepiscopo 37a04759dd Fixed a typo so that we are no longer ignoring an error and am now using path.Join instead of fmt.Sprintf() 6 lat temu
.github 9b5a3addd7 Update issue templates 6 lat temu
.travis.yml 55546487cf Use mock for all tests 6 lat temu
LICENSE 3a7f65cd20 Update copyright years. 13 lat temu
README.md e6de3d35bf Replace DialWithOptions with Dial 6 lat temu
client_test.go 04b1878733 Add DialWithOptions 6 lat temu
conn_test.go e6de3d35bf Replace DialWithOptions with Dial 6 lat temu
debug.go 8b7b512afb Add DialWithDebugOutput to log commands. 6 lat temu
ftp.go e6e290ca7f Added initial logic and tests for the Walker 6 lat temu
parse.go b218223d02 Use error values in tests 7 lat temu
parse_test.go b218223d02 Use error values in tests 7 lat temu
scanner.go 602886c6b8 Do not export the scanner type 9 lat temu
scanner_test.go 602886c6b8 Do not export the scanner type 9 lat temu
status.go 72f5c01749 StatusText returns a text for the FTP status code 7 lat temu
status_test.go 8019e67744 Add tests for StatusText 7 lat temu
walker.go 37a04759dd Fixed a typo so that we are no longer ignoring an error and am now using path.Join instead of fmt.Sprintf() 6 lat temu
walker_test.go 74a8c4bcbc Renamed Step func to Next() as per PR comments 6 lat temu

README.md

goftp

Build Status Coverage Status Go ReportCard godoc.org

A FTP client package for Go

Install

go get -u github.com/jlaffaye/ftp

Example

c, err := ftp.Dial("ftp.example.org:21", ftp.DialWithTimeout(5*time.Second))
if err != nil {
    log.Fatal(err)
}

err = c.Login("anonymous", "anonymous")
if err != nil {
    log.Fatal(err)
}

// Do something with the FTP conn

if err := c.Quit(); err != nil {
    log.Fatal(err)
}