https://kotlinlang.org logo
#ktor
Title
# ktor
c

Chris Miller

03/25/2024, 8:23 AM
Does Ktor support directory browsing (rather than just serving static files)? I'm happy to implement my own if need be but would rather avoid the extra effort if there's a way to enable it out of the box.
a

Aleksei Tirman [JB]

03/25/2024, 8:43 PM
c

Chris Miller

03/25/2024, 8:44 PM
Yes exactly 😄
a

Aleksei Tirman [JB]

03/25/2024, 8:47 PM
Unfortunately, there is no such functionality.
c

Chris Miller

03/25/2024, 8:50 PM
That's what I figured, thanks for confirming. I guess it's a bit out of scope for Ktor to support it anyway, but shouldn't be too hard to roll my own.
c

Colton Idle

04/07/2024, 3:52 AM
i would have thought that static file serving would be enough for the server to show what's available there. i guess not?
a

Aleksei Tirman [JB]

04/07/2024, 11:35 AM
That's not enough because the directories need to be served, too.
today i learned 1