httpshare

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

httpshare

Go Reference

Share a single file or a directory over http

Usage

Binary
go install github.com/9illes/httpshare

# share files in current directory on :3000
httpshare -d . -p 3000

# share a single file
httpshare -d ./file.ext
Dev

Build

make build

Share a file on the default port (:8080)

go run . -d ../path/to/a/file.ext

Share all file of a directory

go run . -d ../path/to/a/directory

Troubleshooting

Ensure that the port is open.

firewall-cmd --get-active-zones
firewall-cmd --zone=<zone_name> --permanent --add-port=<port>

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