(self, path_to_tree, package)
Walk a file tree and copy files directly into an output package.

    Walks a file tree relative to the target language, copying all files
    found into an output package.

    Args:
      path_to_tree: (str) path relative to the language template directory
      package: (LibraryPackage) output package.
Walk a file tree and copy files directly into an output package.
Walk a file tree and copy files directly into an output package .
def IncludeFileTree(self, path_to_tree, package):
    """Walk a file tree and copy files directly into an output package.

    Walks a file tree relative to the target language, copying all files
    found into an output package.

    Args:
      path_to_tree: (str) path relative to the language template directory
      package: (LibraryPackage) output package.
    """
    top_of_tree = os.path.join(self._template_dir, path_to_tree)
    # Walk tree for jar files to directly include
    for path in files.IterFiles(top_of_tree):
      relative_path = path[len(top_of_tree) + 1:]
      package.IncludeFile(path, relative_path)
def IncludeFileTree ( self , path_to_tree , package ) : top_of_tree = os . path . join ( self . _template_dir , path_to_tree ) # Walk tree for jar files to directly include for path in files . IterFiles ( top_of_tree ) : relative_path = path [ len ( top_of_tree ) + 1 : ] package . IncludeFile ( path , relative_path )