Nonetheless, I'd recommend parsing the GIR even over listing the file names. It's all the info you need in one file, it's already present on your system, and you wouldn't have to do such things like "catch (probablyAProperty)" because the GIR is always unambiguous.