consolidate hidden subdir filtering into get_recursive_list function