Quote:
Originally Posted by exaltedwombat
I'm not knocking you, and thanks for your invaluable work. But I'm trying to get my head round the concept that a validation utility has any business being able to do anything except look at a file, display a report and maybe write a log file.
|
It's because the unzipped temp directory that Sigil works out of (the scratch directory) does not include a mimetype file. And epubcheck expects one, so one needs to be created before submitting the structure to the validator. The way to achieve this (that the plugin now does) is to copy the books contents to a temp directory, create the mimetype file there, and then submit it all to the validator. The EpubCheck validation process, itself, makes no changes to any files whatsovever (as one would expect). It's the
plugin that needs to create something so that EpubCheck has everything it expects to be present.
EDIT: as Doitsu already explained while I was fat-fingering.