UNPKG

igir

Version:

🕹 A zero-setup ROM collection manager that sorts, filters, extracts or archives, patches, and reports on collections of any size on any OS.

19 lines (18 loc) • 944 B
import ProgressBar from '../console/progressBar.js'; import File from '../types/files/file.js'; import { ChecksumBitmaskValue } from '../types/files/fileChecksums.js'; import FileFactory from '../types/files/fileFactory.js'; import Options from '../types/options.js'; import Module from './module.js'; /** * The base class for every input file scanner class. */ export default abstract class Scanner extends Module { protected readonly options: Options; private readonly fileFactory; protected constructor(options: Options, progressBar: ProgressBar, fileFactory: FileFactory, loggerPrefix: string); protected getFilesFromPaths(filePaths: string[], threads: number, checksumBitmask: number, checksumArchives?: boolean): Promise<File[]>; protected getUniqueFilesFromPaths(filePaths: string[], threads: number, checksumBitmask: ChecksumBitmaskValue): Promise<File[]>; private getFilesFromPath; private logWarnings; }