[ref] add foreach_glob