[GH-ISSUE #46] [Feature Request] enhance --render-index functionality #21

Closed
opened 2026-04-08 16:49:50 +03:00 by zhus · 2 comments
Owner

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.

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.
zhus added the enhancement label 2026-04-08 16:49:50 +03:00
zhus closed this issue 2026-04-08 16:49:50 +03:00
Author
Owner

@sigoden commented on GitHub (Jun 17, 2022):

Add --render-try-index for this situration

<!-- gh-comment-id:1158314339 --> @sigoden commented on GitHub (Jun 17, 2022): Add `--render-try-index` for this situration
Author
Owner

@shiggins8 commented on GitHub (Jun 17, 2022):

@sigoden extremely fast response time, many thanks!

<!-- gh-comment-id:1158353175 --> @shiggins8 commented on GitHub (Jun 17, 2022): @sigoden extremely fast response time, many thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#21