Нема описа

John Episcopo a6055c7bc8 Added further tests пре 6 година
.github 9b5a3addd7 Update issue templates пре 6 година
.travis.yml 55546487cf Use mock for all tests пре 6 година
LICENSE 3a7f65cd20 Update copyright years. пре 13 година
README.md e6de3d35bf Replace DialWithOptions with Dial пре 6 година
client_test.go 04b1878733 Add DialWithOptions пре 6 година
conn_test.go e6de3d35bf Replace DialWithOptions with Dial пре 6 година
debug.go 8b7b512afb Add DialWithDebugOutput to log commands. пре 6 година
ftp.go e6e290ca7f Added initial logic and tests for the Walker пре 6 година
parse.go b218223d02 Use error values in tests пре 7 година
parse_test.go b218223d02 Use error values in tests пре 7 година
scanner.go 602886c6b8 Do not export the scanner type пре 9 година
scanner_test.go 602886c6b8 Do not export the scanner type пре 9 година
status.go 72f5c01749 StatusText returns a text for the FTP status code пре 7 година
status_test.go 8019e67744 Add tests for StatusText пре 7 година
walker.go e6e290ca7f Added initial logic and tests for the Walker пре 6 година
walker_test.go a6055c7bc8 Added further tests пре 6 година

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)
}