Skip to content

Files

ftp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 19, 2021
Oct 24, 2021
Oct 19, 2021
Oct 24, 2021
Oct 19, 2021
Oct 19, 2021
Oct 22, 2021
Oct 19, 2021
Oct 19, 2021
May 24, 2023
May 24, 2023
Oct 19, 2021
Oct 19, 2021
Nov 1, 2021
Oct 19, 2021
Oct 19, 2021

Services Test Ftp

ftp

FTP service support for go-storage.

Install

go get go.beyondstorage.io/services/ftp

Usage

import (
	"log"

	_ "go.beyondstorage.io/services/ftp"
	"go.beyondstorage.io/v5/services"
)

func main() {
	store, err := services.NewStoragerFromString("ftp:///path/to/workdir?credential=basic:<user>:<password>&endpoint=tcp:<host>:<port>")
	if err != nil {
		log.Fatal(err)
	}

	// Write data from io.Reader into hello.txt
	n, err := store.Write("hello.txt", r, length)
}