Nav apraksta

Julien Laffaye 8b7b512afb Add DialWithDebugOutput to log commands. 7 gadi atpakaļ
.travis.yml 55546487cf Use mock for all tests 7 gadi atpakaļ
LICENSE 3a7f65cd20 Update copyright years. 13 gadi atpakaļ
README.md 75b9ebed79 Fix errors in example code 7 gadi atpakaļ
client_test.go 04b1878733 Add DialWithOptions 7 gadi atpakaļ
conn_test.go 04b1878733 Add DialWithOptions 7 gadi atpakaļ
debug.go 8b7b512afb Add DialWithDebugOutput to log commands. 7 gadi atpakaļ
ftp.go 8b7b512afb Add DialWithDebugOutput to log commands. 7 gadi atpakaļ
parse.go b218223d02 Use error values in tests 7 gadi atpakaļ
parse_test.go b218223d02 Use error values in tests 7 gadi atpakaļ
scanner.go 602886c6b8 Do not export the scanner type 9 gadi atpakaļ
scanner_test.go 602886c6b8 Do not export the scanner type 9 gadi atpakaļ
status.go 72f5c01749 StatusText returns a text for the FTP status code 7 gadi atpakaļ
status_test.go 8019e67744 Add tests for StatusText 7 gadi atpakaļ

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.DialWithOptions("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)
}