def apply_path_dir_wildcard(dirs, path_dir_wildcard):
  ftype = path_dir_wildcard.ftype
  paths = [d.path for d in dirs.dependencies
           if fnmatch.fnmatch(d.path, path_dir_wildcard.wildcard)]
  return PathGlobs(ftype, tuple(PathGlob.create_from_spec(ftype, p, remainder)
                                for p in paths
                                for remainder in path_dir_wildcard.remainders))
Given a PathDirWildcard, compute a PathGlobs object that encompasses its children.
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/engine/exp/fs.py/apply_path_dir_wildcard