Producing a list.json when a folder listing is requested