Categorygithub.com/walesey/go-fileserver
modulepackage
0.0.0-20180813233004-768d611d4fb8
Repository: https://github.com/walesey/go-fileserver.git
Documentation: pkg.go.dev

# README

Go File Server

This is a file server that allows clients to sync a filesystem with the server

Build Status

Usage:

import (
	"github.com/walesey/go-fileserver/client"
	"github.com/walesey/go-fileserver/server"
)

// start server
	server.NewServer(".").Start(3000)

// sync directory with server
c := client.NewClient(".", "http://localhost:3000")
if err := c.SyncFiles("."); err != nil {
	log.Println(err)
}

Command line:

  • Start server (on port 3000)
  $ go-fileserver -server -port 3000 -path ./path/to/files
  • Run sync against the server (into the current directory)
  $ go-fileserver -host localhost -port 3000 -path ./remote/path -out .

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author