Part of lp.services.tarfile_helpers View In Hierarchy
This class makes it convenient to generate tar files in various ways.
Method | __init__ | Undocumented |
Class Method | files_to_stream | Turn a dictionary of files into a data stream. |
Class Method | files_to_string | Turn a dictionary of files into a data string. |
Class Method | files_to_tarfile | Turn a dictionary of files into a tarfile object. |
Method | close | Close the archive. |
Method | add_directory | Add a directory to the archive. |
Method | add_file | Add a file to the archive. |
Method | add_files | Add a number of files to the archive. |
Method | add_symlink | Add a symbolic link to the archive. |
Method | _make_skeleton_tarinfo | Make a basic TarInfo object to be fleshed out by the caller. |
Method | _ensure_directories | Ensure that all the directories in the path are present. |
After the archive is closed, the data written to the filehandle will be complete. The archive may not be appended to after it has been closed.