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?