DSF-跨平台的极简 HTTP 目录文件列表程序(Golang)

DSF是一款使用Golang写的跨平台的极简 HTTP 目录文件列表程序,可以非常方便地把本地的文件暴露到局域网或者公网上,DSF使用简单,无额外依赖需求,体积小巧,开箱即用。

仓库地址:

https://github.com/nanmu42/dsf

使用教程:

下载编译后的对应平台的二进制程序,下载地址:https://github.com/nanmu42/dsf/releases/

我以Windows平台为例,则需下载dsf-windows-amd64.exe程序文件,

然后在dsf-windows-amd64.exe这个程序的目录下使用命令行执行下面的命令即可使用。

查看使用帮助:

命令:

dsf -h

示例代码:

λ dsf-windows-amd64 -h
Usage of dsf-windows-amd64:
  -port int
        port to listen (default 8080)
  -root string
        root of files (default "./")

分享当前工作目录:

命令:

dsf

示例代码:

λ dsf-windows-amd64
listening on: http://127.0.0.1:8080
listening on: http://::1:8080
listening on: http://192.168.0.6:8080
listening on: http://fe80::1234:1e11:abec:5678:8080

分享当前工作目录

在特定端口分享特定目录:

$ dsf -port 3000 -root ~/images
listening on: http://127.0.0.1:3000
listening on: http://::1:3000
listening on: http://192.168.0.6:3000
listening on: http://fe80::1234:1e11:abec:5678:3000

演示效果截图:

效果图:

效果图

这篇文章有用吗?

点击星号为它评分!

平均评分 0 / 5. 投票数: 0

到目前为止还没有投票!成为第一位评论此文章。

发表评论