Get list of pages inside a path

I am trying to get the list of pages inside a path.
For example, if I have this in my project
_ blog/
|_ blog1.html
|_blog2.html
|_index.html

I want to get the list of html pages in my _worker.js
Is it possible to do such thing?
Was this page helpful?