def apply_path_wildcard(stats, path_wildcard):
 paths = Paths(tuple((Path(normpath(join(path_wildcard.symbolic_path, basename(s.path))), s) for s in stats.dependencies if fnmatch(basename(s.path), path_wildcard.wildcard))))
 return PathsExpansion(paths, tuple())

def apply_path_wildcard ( stats , path_wildcard ) : paths = Paths ( tuple ( ( Path ( normpath ( join ( path_wildcard . symbolic_path , basename ( s . path ) ) ) , s ) for s in stats . dependencies if fnmatch ( basename ( s . path ) , path_wildcard . wildcard ) ) ) ) return PathsExpansion ( paths , tuple ( ) )
filter the given directorylisting object using the given pathwildcard .