Skip to content

Tankōbon / main/services/folder-cleanup / FolderCleaner

Interface: FolderCleaner ​

Defined in: main/services/folder-cleanup.ts:27

The cleaning of the organized folder as the handlers use it; built once in main.ts.

Methods ​

clean() ​

clean(onProgress?): Promise<CleanFoldersResult>

Defined in: main/services/folder-cleanup.ts:31

Moves them to .deletedByTankobon, reporting each through onProgress. Holds the shared lock.

Parameters ​

onProgress? ​

(progress) => void

Returns ​

Promise<CleanFoldersResult>


count() ​

count(): Promise<OrphanFoldersCountResult>

Defined in: main/services/folder-cleanup.ts:29

How many orphan folders the organized folder holds. An error when the organization is off or its folder unreachable.

Returns ​

Promise<OrphanFoldersCountResult>