Package gozerbot :: Module fileutils
[hide private]
[frames] | no frames]

Module fileutils

source code

Functions [hide private]
 
tarextract(package, fileobj=None, prefix=None, base=None)
Extracts a tarball from ``package``, or, if ``fileobj`` is either a string or a seekable IO stream, it will extract the data from there.
source code
 
bunzip2(fileobj) source code
 
gunzip(fileobj) source code
Function Details [hide private]

tarextract(package, fileobj=None, prefix=None, base=None)

source code 

Extracts a tarball from ``package``, or, if ``fileobj`` is either a string or a seekable IO stream, it will extract the data from there. We only extract files from the tarball that are member of the ``base`` directory if a ``base`` is specified.