sfz icon indicating copy to clipboard operation
sfz copied to clipboard

Allow BOTH listing and an index.html file to be the default view for a folder, with a combined mode for renderer and listing

Open eacp opened this issue 5 years ago • 1 comments

Hello, I was testing in localhost some code and I executed sfz -Z -r, and it works for folders with an index.html. The command is also usefull because I can remove the -r flag and browse the folder in the browser. However, in this mode I cannot see the default index.htm, I have to manually open such file (eg: http://localhost:5000/something/index.html). It would be nice if there was a mode that showed the custom index.html in the directory and the file listing as a backup.

Thanks, and if it sounds interesting, I could help you add such feature.

:)

eacp avatar Dec 10 '20 06:12 eacp

Thanks for your suggestion!

Although it is feasible to implement, I am not sure what is the scenario of this file-listing fallback. Could you elaborate more about that? Such like https://github.com/weihanglo/sfz/issues/52 describing where the feature would be used.

weihanglo avatar Dec 10 '20 08:12 weihanglo

Thank you for the PR. Unfortunately I have no time working on it. See #108.

weihanglo avatar Mar 27 '23 08:03 weihanglo