Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evan-buss/go-serve

Quickly download files and folders from computers on the local network
https://github.com/evan-buss/go-serve

Last synced: 30 days ago
JSON representation

Quickly download files and folders from computers on the local network

Awesome Lists containing this project

README

        

# GoServe - HTTP File Server

Quickly download files and folders from computers on the local network

## Why

I found Python's quick local network file server to be useful for transferring files in a pinch. The only problem is you cannot download folders. GoServe quickly zips folders before sending them. It also looks a bit nicer than the default Python file server.

## Installation

`go get github.com/evan-buss/go-serve`

## Usage
```
Usage of go-serve:
-home
Sets the base file server directory to your home directory
-port string
Change the server's port (default "8080")
-showDots
Enable to make dotfiles visible
-unsafe
Sets the base file server directory to the root '/' directory. Use with caution.
```

## Screenshot

screenshot

## Development

In order to package go-serve as a single executable, it makes use of the go-bindata utility.
This transforms the HTML template into a plain `*.go` file. If you make changes to the HTML template,
you must recompile it.

1. `go get -u github.com/go-bindata/go-bindata/...`
2. Run `go-bindata data/`
3. `bindata.go` is generated.