def filter_paths(stats, path_dir_wildcard):
 entries = [(s, basename(s.path)) for s in stats.dependencies]
 paths = tuple((Path(join(path_dir_wildcard.symbolic_path, basename), stat) for (stat, basename) in entries if fnmatch(basename, path_dir_wildcard.wildcard)))
 return FilteredPaths(Paths(paths))

def filter_paths ( stats , path_dir_wildcard ) : entries = [ ( s , basename ( s . path ) ) for s in stats . dependencies ] paths = tuple ( ( Path ( join ( path_dir_wildcard . symbolic_path , basename ) , stat ) for ( stat , basename ) in entries if fnmatch ( basename , path_dir_wildcard . wildcard ) ) ) return FilteredPaths ( Paths ( paths ) )
path_list - a list of file paths to check .