Part of lp.codehosting.codeimport
Class | TarError | Raised when the tar command has failed for some reason. |
Class | NotADirectory | Undocumented |
Function | create_tarball | Create a tarball of directory called tarball_name . |
Function | extract_tarball | Extract contents of a tarball. |
Function | _check_tar_retcode | Undocumented |
directory
called tarball_name
.
This creates a tarball of directory
from its parent directory. This
means that when untarred, it will create a new directory with the same
name as directory
. If filenames
is not None, then the tarball will
be limited to that list of directory entries under directory
.
Basically, this is the standard way of making tarballs.