can we have smth like 
base::FileEnumerator enum(my_dir, false, base::FileEnumerator::FILES,
                             FILE_PATH_LITERAL("index.*"));
instead of traversing all the files and just check the file extension after that?