[regression] Don't provide a default for 'is_dir_func'