Quote:
Originally Posted by exaltedwombat
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.
|
The problem was that I took a shortcut; I processed the files in the scratchpad temp folder created by Sigil instead of copying them to a separate temp folder.
However, since epubcheck requires a mimetype file (which Sigil never wrote to the temp folder), I wrote a mimetype file in the temp folder (nothing else was touched), because I erroneously assumed that Sigil would do the same before saving the file thus overwriting my file. I had also checked all files after running the plugin and saving them with a standalone epubcheck version, which didn't report any errors. It had also never occurred to me that Sigil would add another mimetype upon saving the .epub file. I actually thought it was impossible that a .zip could contain the same file twice.
As I've already mentioned, the epubcheck plugin only caused the double mimetype problem if you ran the plugin, corrected reported errors
and immediately saved it afterwards.
If you ran the epubcheck plugin and closed the file after it reported no errors there shouldn't be any mimetype problems.
Like I've said, I'm really sorry that my shortcut caused you all these problems, had it not been for your bug report and
DiapDealer's superior sleuthing skills I would have never noticed it.
@DiapDealer &
KevinH: I'm curious: is having two files with the exact same file name and content in the same location of a .zip file a standard .zip file feature or did Sigil save the .ePub file in a special non-standard .zip file format?