
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
github.com/dh1tw/nolistfs
NoListFileSystem is a custom filesystem implementation. It wraps around a "base" file system. It is mainly used with http.FileServer
so that 404 status code is returned instead of a directory listing.
Instead of copy & pasting this code in all of my projects, I prefer to store it in a dedicated package.
Please check the example folder for a basic example which:
$ go run example/main.go
Listening on 127.0.0.1:7474
When the webserver is started, head to static
and a 404 Error will be returned, instead of a directory listing.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.