Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Missing case in p:archive? #203
Unless I overlooked something, there seems to be a missing case. The specs say on 'update':
Now image I run update on a zip containing entries, that are not mentioned in the (constructed) manifest? What do we say about them?
I suppose these entries should be copied to the archive appearing on port
I have no idea how efficiently ZIP deals with updates. I think I'd be inclined to say that the order of the files in the update case is implementation defined. From an implementation point of view, I'd prefer:
Requiring the implementation to move all the entries not in the manifest to the end of the zip file sounds like it could involve a lot of I/O.
But I'm ok with whatever you think the right answer is :-)
@ndw Yes, order makes it complicated and results in a lot I/O. But the specs say:
(Hint: The 'should' in the last sentence is not in terminology).
I am pretty sure creating ePub is a requirement for some users.