Rust's Rocket set to self serve the files in the local directory
|
|
před 5 měsíci | |
|---|---|---|
| src | před 5 měsíci | |
| .gitignore | před 1 rokem | |
| Cargo.lock | před 5 měsíci | |
| Cargo.toml | před 5 měsíci | |
| LICENSE | před 5 měsíci | |
| README.md | před 5 měsíci |
Rust's Rocket set to self serve the files in the local directory
Just give a port number via args (default 9000, i.e. selfserve 9009 for port 9009)
Confirmed to now work cross platform (v0.1.1)
You can now enable the debug feature to gain access to /ls/<path..> (Gives a json payload of directories and files at given path, warning, it is unsafe as /ls/../ would access the above directory, just as /ls/~/ would as well, assuming a UNIX os)