fabi1cazenave / node-html2epub

Convert a bunch of HTML documents into an EPUB
MIT License
36 stars 10 forks source link

.DS_STORE is missing #4

Open damianza opened 8 years ago

damianza commented 8 years ago

Generated epub which had images (sub folder /media with png and jags). Validation kicked out error:

ERROR in "XXXXX.epub":
   resource 'EPUB/.DS_Store' is missing

The content.opf file lists the .ds_store file in the manifest, but is not in the archive. The listing in the content.opf file is:

 <item id="res_01" media-type="application/octet-stream" href=".DS_Store" />

If I go and delete the original file and remake the epub, all ok.

caraya commented 8 years ago

You should not add .DS_Store to an epub file. Those are Mac specific data files and they are invisible when you do a directory listing.

They should be excluded before build with a command similar to this on my Mac:

find . -name '*.DS_Store' -type f -ls -delete

There should be something equivalent for Windows.