forked fromjlaffaye/ftp
Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6
rclone/ftp
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
A FTP client package for Go
go get -u github.com/jlaffaye/ftphttps://pkg.go.dev/github.com/jlaffaye/ftp
c,err:=ftp.Dial("ftp.example.org:21",ftp.DialWithTimeout(5*time.Second))iferr!=nil {log.Fatal(err)}err=c.Login("anonymous","anonymous")iferr!=nil {log.Fatal(err)}// Do something with the FTP conniferr:=c.Quit();err!=nil {log.Fatal(err)}
data:=bytes.NewBufferString("Hello World")err=c.Stor("test-file.txt",data)iferr!=nil {panic(err)}
r,err:=c.Retr("test-file.txt")iferr!=nil {panic(err)}deferr.Close()buf,err:=ioutil.ReadAll(r)println(string(buf))
About
FTP client package for Go
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Languages
- Go100.0%