摘要 |
A method, apparatus, and article of manufacture provide the ability to edit in-place a ZIP™archive file. A file and a first file block (FFB) in a first block location are opened and modified. If the first block location can accommodate the modified FFB, the modified FFB is saved, in-place, in the first block location without rewriting the entire archive. However, if the first block location cannot accommodate the modified FFB, a second file block is copied from a second block location to a third block location located at an end of a file data section of the archives A portion of the second block location is marked as a free block and the modified FFB is saved without rewriting the entire ZIP™archives The archive is then saved by updating and saving both the central directory and end of central directory.
|