View Single Post
Old 12-27-2015, 12:01 PM   #38
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,705
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by exaltedwombat View Post
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.
DiapDealer is offline   Reply With Quote