Table of maps

For the life of me I cannot think of a way to get a list of maps into a local table; similar to what happens when you type “maps *” in console…

ID --> Name
1 --> gm_flatgrass
2 --> gm_construct

Maybe I’m just brain farting; or maybe it can’t be done.
:pwn:

file.find and the ‘maps’ directory.