[issue37724] [[Errno 17] File exists: ] # Try create directories that are not part of the archive with

Giovanni Cappellotto report at bugs.python.org
Wed Jul 31 22:57:31 EDT 2019


Giovanni Cappellotto <potomak84 at gmail.com> added the comment:

There's also the `makedirs`'s `exist_ok` optional parameter, `False` by default. You could use it to avoid this error, but I'm not an expert on this particular library, so I'm not sure if it would make sense to make this change.

On a side note, searching for `_extract_member`, I found a very similar implementation of that function in `tarfile.py`. In case I think we should apply the same behavior in that module too.

----------
nosy: +potomak

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


More information about the Python-bugs-list mailing list