Like the ubiquitous ls command, ls_web lists the files and directories in the current directory (or one you choose), and serves them over HTTP so you can browse and download them from a browser.
cargo run --release -- --host 0.0.0.0 --port 7878Then open http://0.0.0.0:7878 in a browser (or replace 0.0.0.0 with your host's IP if you want to access it from another machine).
| Flag | Description |
|---|---|
--host, -h |
Host to bind to (default: 0.0.0.0) |
--port, -p |
Port to listen on (default: 7878) |
--dir, -d |
Directory to serve (default: current working directory) |
--sort-dirs-first |
When listing, show directories before files |
Example:
cargo run --release -- --dir /tmp --port 8080 --sort-dirs-first- Clicking a file will download it directly.
- Right‑click a folder to download it as an archive:
- ZIP (always supported)
- tar.gz (always supported)
- 7z (requires the
7zexecutable to be installed and on yourPATH)
Note: Downloads are streamed from disk rather than buffered entirely in RAM, so large files and archives won't exhaust your system memory.
If 7z is not available, selecting "Download 7z" will return an error.
Please review the LICENSE.md file before using this software. The license is intentional and non-standard.