How can i get an array of all the savedGame files in the saved directory ?

How can i get an array of all the savedGame files in the saved directory ?

I was trying to do this too, and couldn’t find a good solution. In the end I used 's plugin, and wrote the names of the save slots (that the user enters) to a config file, and then got those names from the config to populate a list on a load screen.

Thanks, thought about the same idea but it can be broke if the save deleted the save folder to clear memory.
I think a function that scans the save folder is kind of must have.