sigoden/dufs ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple file server I can run from the command line for sharing files and folders on my local network.
It should let me serve a folder or a single file, browse the contents in a web page, download whole folders as zip files, upload files and folders from the browser, and search for files by name. I’d like basic access control with usernames and passwords, plus options to make some folders read only and others writable. Support for WebDAV would be great too, along with HTTPS, resumable uploads and downloads, and a way to hide certain files or folders from listings.
Please make it easy to use with sensible defaults, something that works out of the box but still has flags for things like allowing uploads, deletes, archive downloads, CORS, and a custom port or bind address. If anything needs current docs or best practices, look them up online first.
Are you gonna build this?
make sure you review the code using coderabbit