[issue7101] tarfile: OSError with TarFile.add(..., recursive=True) about non-existing file
Sandro Tosi
report at bugs.python.org
Tue Mar 29 22:56:37 CEST 2011
Sandro Tosi <sandro.tosi at gmail.com> added the comment:
Hi,
I don't understand why you think tarfile should not fail in case you're trying to add a non-existing file. the problem is that glob() already extracted a list of files&dirs and then while the script is tar-ring them, you're removing some of them -> script crash.
if you want to do it, then wrap tar.add() in a try..catch construct, but I think the behavior of tar.add() is correct here.
Lars, you assigned this issue to yourself: what do you think it's the best action now (i was about to close it :) ?
----------
nosy: +sandro.tosi
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7101>
_______________________________________
More information about the Python-bugs-list
mailing list