A featureful file server inspired by dufs.
gofs
uses very little JavaScript (only for drag and drop), this allows it to
work even on browsers with limited capabilities (for example, browser on some
e-reader devices).
gofs_demo_2.mp4
go install github.com/ndtoan96/gofs@latest
You can download pre-built binary in the release page
- Serve static files
- Create folder
- Delete files/folders
- Archive
- Rename
- Upload
- Download
- Copy/Cut/Paste
- Edit
- Support https
- Drag and drop
- Serve index.html
- Sorting
- Searching (plain text search or glob pattern search)
- Preview (markdown, text, code, image, pdf, zip)
Usage of gofs:
-d, --dir string Directory to serve (default ".")
-h, --host string Host address to listen (default "[::]")
-i, --index Render index.html
-p, --port int Port to listen (default 8080)
--tsl-cert string Path to an SSL/TLS certificate to serve with HTTPS
--tsl-key string Path to an SSL/TLS certificate's private key
-w, --write Allow write access
Serve current directory in read-only mode
gofs
Serve current directory in write mode (allow copy, paste, rename, edit, delete,...)
gofs -w
Serve directory xxx
gofs xxx
Use a different port (default is 8080)
gofs -p 7777