dsf

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 4 Imported by: 0

README

DSF - Dead Simple Fileserver

Go Reference Go Report Card

English | 中文

A dead simple HTTP fileserver to share your files across LAN.

Yes, python3 -m http.server will do, but sometimes I got bitten by its single-threaded nature.

Usage

$ dsf -h
Usage of dsf:
  -port int
    	listening port (default 8080)
  -root string
    	root for files (default "./")

Serve current working directory:

$ dsf
listening on: http://127.0.0.1:8080
listening on: http://::1:8080

Serve a specific directory and listen on a desired port:

$ dsf -port 3000 -root ~/images
listening on: http://127.0.0.1:3000
listening on: http://::1:3000

Installation

Precompiled binaries are available for Linux, Mac and Windows: https://github.com/nanmu42/dsf/releases/

For gophers:

go install github.com/nanmu42/dsf@latest

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL