Skip to content

Skeudenn / main/services/cbr-conversion / CbrConverter

Interface: CbrConverter ​

Defined in: src/main/services/cbr-conversion.ts:39

The conversion as the handlers use it; built once in main.ts.

Methods ​

convert() ​

convert(onProgress?): Promise<ConvertCbrResult>

Defined in: src/main/services/cbr-conversion.ts:43

Converts them one at a time, reporting each through onProgress. Holds the shared lock.

Parameters ​

onProgress? ​

(progress) => void

Returns ​

Promise<ConvertCbrResult>


count() ​

count(): Promise<ConvertCountResult>

Defined in: src/main/services/cbr-conversion.ts:41

How many CBR of the organized folder can be converted, and what .deletedByTankobon holds. An error when the organization is off or its folder unreachable.

Returns ​

Promise<ConvertCountResult>


emptyDeleted() ​

emptyDeleted(): Promise<EmptyDeletedResult>

Defined in: src/main/services/cbr-conversion.ts:45

Deletes everything in .deletedByTankobon for good. Holds the shared lock.

Returns ​

Promise<EmptyDeletedResult>


emptyDeletedOlderThan() ​

emptyDeletedOlderThan(days, now?): Promise<EmptyDeletedResult | null>

Defined in: src/main/services/cbr-conversion.ts:50

Deletes for good what has been in .deletedByTankobon for days days or more (the automatic emptying). Does nothing, returning null, when the organization is off, the folder unreachable or another run holds the lock.

Parameters ​

days ​

number

now? ​

Date

Returns ​

Promise<EmptyDeletedResult | null>