[issue7357] tarfile doesn't detect disk full error on extraction

Lars Gustäbel report at bugs.python.org
Thu Nov 19 17:27:11 CET 2009


Lars Gustäbel <lars at gustaebel.de> added the comment:

The TarFile constructor (as well as tarfile.open) takes an errorlevel
keyword argument. See
http://docs.python.org/dev/library/tarfile.html#tarfile-objects

I quote: "If errorlevel is 0, all errors are ignored when using
TarFile.extract(). Nevertheless, they appear as error messages in the
debug output, when debugging is enabled. If 1, all fatal errors are
raised as OSError or IOError exceptions. If 2, all non-fatal errors are
raised as TarError exceptions as well."

Hope that helps.

----------
assignee:  -> lars.gustaebel
nosy: +lars.gustaebel

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7357>
_______________________________________


More information about the Python-bugs-list mailing list