Ipfs/dir-index-html

Hi All,
Is there a way to display the directory content if this one contains an index.html resource ?
In that situation accessing the directory display index.html, typical web server behaviour.
I’m wondering if there is a trick ?
https://domain/ipfs/cid/#display for instance or https://domain/ipfs/cid/#dir
Thanks

If the gateway provides the read-only API you could use that. i.e:

https://ipfs.io/api/v0/ls?arg=/ipns/docs.ipfs.io

I don’t know a trick to display the html rendering of the folder as if there was no index.html though.