Skip to content

walesey/go-fileserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .

About

A client server api for syncing file systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published