patrickhener / goshs

A SimpleHTTPServer written in Go, enhanced with features and with a nice design - https://goshs.de
MIT License
293 stars 22 forks source link

Feature Request: Have "Read only mode" remove the possibility to delete a file #56

Closed rxxsta closed 11 months ago

rxxsta commented 11 months ago

I think it makes sense for the -ro and --read-only flag to stop a user from being able to delete a file.

patrickhener commented 11 months ago

The referenced commit will solve this issue. It will be in a later official release when I push a new version. If you need it right away then just build from main.