The pain in the ass part will be scanning compressed MAT files for variable names without reading the entire file. See also https://github.com/JuliaLang/julia/issues/805