Hi,
I'm using getFromResource to deliver html,pics and javascript from a directory which has multiple sub directories. That works fine except the case, that when using a url which maps on a sub directory the file listing of the directory will be shown. As far as I can see the code is trying to avoid that when the url ends with a '/' but without the slash it just returns a list of all the files.
I don't want to reject every path directly so I was wondering whether it makes sense to check inside the method whether it's a directory and if so, just reject the request. I could provide a PR for that when that does not break anything else?
Best
Martin