mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #46] [Feature Request] enhance --render-index functionality #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shiggins8 on GitHub (Jun 16, 2022).
Original GitHub issue: https://github.com/sigoden/dufs/issues/46
First of all, this is a very cool tool, so thank you for the development efforts. The addition of the --render-index argument is great. This might not be a common use case, but I've got a file server that is probably 50/50 split, where half of the directories contain an index.html and half do not. Currently, when I set that flag, any directory that doesn't have an index.html file just renders a blank page (404 from the server, since the file wasn't found).
Is there any way to make that argument kick in when there is a index.html file present, but fall back to the default rendering of a directory if not? Would be a very nice enhancement.
@sigoden commented on GitHub (Jun 17, 2022):
Add
--render-try-indexfor this situration@shiggins8 commented on GitHub (Jun 17, 2022):
@sigoden extremely fast response time, many thanks!