Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

DSF - Dead Simple Fileserver / 极简HTTP文件服务

License

NotificationsYou must be signed in to change notification settings

nanmu42/dsf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go ReferenceGo Report Card

English |中文

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

Motivation

Yes,python3 -m http.server works fine, but...

  • sometimes I got bitten by its single-threaded nature(serving one downloading at a time);
  • dsf prints copy-paste-friendly host IP and port, so I don't need to figure out by myself.

Usage

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

Serve current working directory:

$ dsflistening on: http://127.0.0.1:8080listening on: http://::1:8080listening on: http://192.168.0.6:8080listening on: http://fe80::1234:1e11:abec:5678:8080

Serve a specific directory and listen on a desired port:

$ dsf -port 3000 -root~/imageslistening on: http://127.0.0.1:3000listening on: http://::1:3000listening on: http://192.168.0.6:3000listening on: http://fe80::1234:1e11:abec:5678: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

About

DSF - Dead Simple Fileserver / 极简HTTP文件服务

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

[8]ページ先頭

©2009-2025 Movatter.jp