Find out the contents of the folder

I needed to find out the contents of the folder (.WrathOfChaos/Mods) to find out which modifications to download to the game.
I tried to do it in different ways, but it didn’t work.

Here I don’t have the question “what’s wrong with my code?”, I have the question “how can I do this?”

So how can I get the contents of a certain folder?

Is this related to GDevelop or GDMod or what?

This does not apply to GDMod, I’m going to do the mod support in the game myself. I just need to figure out how to see the contents of the folder. Can I do this through javascript code? or something else?