[issue6818] remove/delete method for zipfile/tarfile objects
Martin v. Löwis
report at bugs.python.org
Wed Sep 2 20:54:27 CEST 2009
Martin v. Löwis <martin at v.loewis.de> added the comment:
> In light of Lars's comment on the matter, perhaps this functionality
> could be added to zip files only. Surely it can be done, considering
> that numerous utilities and even Windows Explorer provide such
> functionality.
Are you sure they are not creating a new file in order to delete
content? I recall that early zip tools (e.g. pkzip) had a mode
where they would merely delete the entry from the directory, but
leave the actual data in the file. Would you consider that a correct
implementation? If so, *that* can be done, for zipfiles, AFAIU.
> I'll spend some time the next
> few days educating myself about zip files and how this might be
> accomplished.
Please do - you'll find that deletion from zipfiles comes in a can
full of worms.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6818>
_______________________________________
More information about the Python-bugs-list
mailing list