Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 17 days 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 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-10T03:38:10.000Z (over 3 years ago)
- Last Synced: 2024-11-16T12:13:01.248Z (3 months ago)
- Topics: rocket, rocket-rs, rust
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# listing-file-server
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](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.