[issue10436] tarfile.extractfile in "r|" stream mode fails with filenames or members from getmembers()

Wichert Akkerman report at bugs.python.org
Thu Aug 23 14:47:40 CEST 2012


Wichert Akkerman added the comment:

You could also look for the first matching file and extract that. That way you can at least implement something similar to what standard tar can do:

[fog;/tmp]-10> tar tf x.tar 
docs/
docs/index.rst
docs/glossary.rst
docs/Makefile
docs/conf.py
docs/changes.rst
[fog;/tmp]-12> cat x.tar| tar xf - docs/index.rst
[fog;/tmp]-13> ls docs 
index.rst

----------
nosy: +wichert

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


More information about the Python-bugs-list mailing list