Tankōbon / main/services/cbz-cleaner / removeEntries
Function: removeEntries()
removeEntries(
filePath,names):Promise<CleanedArchive>
Defined in: main/services/cbz-cleaner.ts:55
Rewrites the CBZ at filePath without the entries named in names. The new archive is written beside the original, checked (same pages, as many entries as expected), and only then replaces it, so a failure at any point leaves the original untouched. A name that is no longer in the archive, or that is a page, aborts the rewrite: the archive is not what was analyzed. Directory entries are dropped (readers don't need them). Pages are stored as they are (already compressed).
Parameters
filePath
string
names
readonly string[]
Returns
Promise<CleanedArchive>