Skip to content

ndtoan96/gofs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a257ed4 · Mar 6, 2025
Mar 3, 2025
Mar 2, 2025
Mar 3, 2025
Mar 3, 2025
Mar 3, 2025
Mar 3, 2025
Mar 3, 2025
Feb 15, 2025
Feb 21, 2025
Mar 6, 2025
Mar 3, 2025
Mar 3, 2025
Mar 2, 2025

Repository files navigation

Gofs

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).

Demo

gofs_demo_2.mp4

Install

With go

go install github.com/ndtoan96/gofs@latest

Pre-built binary

You can download pre-built binary in the release page

Features

  • 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

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

Example

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