SOME OF THE PROJECTS ARE MOVED IN THEIR SEPARATE REPOSITORIES
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Nikolay Kasyanov 769d8f08b8
Add files via upload
4 years ago
..
logger Add files via upload 4 years ago
server Add files via upload 4 years ago
LICENSE Add files via upload 4 years ago
README.md Add files via upload 4 years ago
go.mod Add files via upload 4 years ago
main.go Add files via upload 4 years ago

README.md

fileServer

A simple implementaion of a simple local file server. Useful if you need to transport a file locally

Usage

There are 2 flags you can specify

  1. Port (-port=) - port that will be used by the server
  2. Dir (-dir=) - the directory with its subdirectories that will be served

Examples

  1. ./fileserver - serve current directory (by default) on default port 8000
  2. ./fileserver -port=8080 - serve current directory on specified port 8080
  3. ./fileserver -dir="." - serve current directory on default port 8000
  4. ./fileserver -dir=/ - serve "/" (root) on default port 8000
  5. ./fileserver -port=8080 -dir=/home/ - serve /home/ on specified port 8080

Note

Hard-refresh the page in your browser (ctrl+F5) if you have changed the serving directory. Caching prevents you from seeing the changes