https://github.com/loveinsky100/simplefileserver
基于python的简单文件服务器,支持上传,下载,多级目录
https://github.com/loveinsky100/simplefileserver
download file fileserver python upload
Last synced: 7 months ago
JSON representation
基于python的简单文件服务器,支持上传,下载,多级目录
- Host: GitHub
- URL: https://github.com/loveinsky100/simplefileserver
- Owner: loveinsky100
- Created: 2019-06-14T10:10:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-14T10:33:20.000Z (over 6 years ago)
- Last Synced: 2025-04-20T18:41:04.901Z (9 months ago)
- Topics: download, file, fileserver, python, upload
- Language: Python
- Homepage:
- Size: 214 KB
- Stars: 11
- Watchers: 0
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 使用方法
```
python SimpleFileServer.py -d=YOUR_WORK_DIR -p=YOUR_WORK_PORT
```
默认端口: 8000
默认目录: 文件所在目录
## 获取文件及目录信息
```
python SimpleFileServer.py -p=8989 -d=YOUR_WORK_DIR
```
访问地址:http://localhost:8989/ 获取工作目录下的文件及文件夹信息
访问地址:http://localhost:8989/hello 获取工作目录/hello 文件夹下的文件及目录信息


## 下载文件
访问地址:http://localhost:8989/1 其中“1”为文件名称,或者访问http://localhost:8989/xxx/1

## 上传文件

