https://github.com/zedseven/listing-file-server
A library that provides a `ListingFileServer` struct that shows directory listings for directory requests.
https://github.com/zedseven/listing-file-server
rocket rocket-rs rust
Last synced: about 1 month ago
JSON representation
A library that provides a `ListingFileServer` struct that shows directory listings for directory requests.
- Host: GitHub
- URL: https://github.com/zedseven/listing-file-server
- Owner: zedseven
- License: mit
- Created: 2021-10-10T03:37:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-10T03:38:10.000Z (over 4 years ago)
- Last Synced: 2025-07-17T20:53:51.131Z (11 months ago)
- Topics: rocket, rocket-rs, rust
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# listing-file-server
[](https://choosealicense.com/licenses/mit/)
A feature-equivalent copy of [`rocket::fs::FileServer`](https://api.rocket.rs/v0.5-rc/rocket/fs/struct.FileServer.html)
that provides directory listings when a directory is requested.
Made to be used with [Rocket](https://rocket.rs/) as a replacement for it's
`FileServer`.
Be careful using this in a production environment, as it may expose files
and file structure that you may normally keep hidden. There's a reason it's
commonly advised to disable this feature on most web servers.
This struct uses the same options as its core counterpart, however the
[`rocket::fs::Options::Index`](https://api.rocket.rs/v0.5-rc/rocket/fs/struct.Options.html#associatedconstant.Index)
option has additional considerations.
If enabled, the index file will be served first if available, and directory
listing will only occur if there is no index file.