[issue20907] behavioral differences between shutil.unpack_archive and ZipFile.extractall

huantian report at bugs.python.org
Tue Jul 6 23:38:31 EDT 2021


huantian <davidtianli at gmail.com> added the comment:

This issue is somewhat old, but I think either applying the patch attached earlier or noting this difference in behavior in the documentation would be ideal, as it can be quite difficult to debug shutil.unpack_archive silently skipping files. If the files you expect to unpack do contain '..' for non-malicious purposes this makes shutil.unpack_archive unsuitable for the situation.

----------
nosy: +huantian

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue20907>
_______________________________________


More information about the Python-bugs-list mailing list