I was reading over the documentation for the tarfile module and it
occurred to me that there didn't seem to be a way to remove an
individual file from the tar.

For example, suppose I did this:

import tarfile
tar = tarfile.open("sample.tar", "w")
tar.add("unwanted")
tar.add("wanted")
tar.close()

At this point, how could I come back and remove "unwanted" from the tar?
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to