[issue2251] tarfile using nonexistent function

2008-03-07 Thread Lars Gustäbel
Lars Gustäbel added the comment: This is in fact misuse of the addfile() method on your side. The docs (http://docs.python.org/dev/library/tarfile.html#tarfile.TarFile.addfile) state that the first argument is supposed to be a TarInfo object not a pathname. You should use the add() method instead

[issue2251] tarfile using nonexistent function

2008-03-07 Thread Goten Xiao
Goten Xiao added the comment: Whoops, add: import tarfile to the top of test.py. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Un

[issue2251] tarfile using nonexistent function

2008-03-07 Thread Goten Xiao
New submission from Goten Xiao: Steps to reproduce: Create test.py with the following contents: tar = tarfile.open("test.tar", "w") tar.addfile("testdir") tar.close() Run the following commands (or equivalent on alternative platforms): mkdir testdir touch testdir/testfile python test.py Result