Use Node scan function if available

This commit is contained in:
HaveAGitGat 2024-05-21 18:11:11 +01:00
parent 7bb090dc6f
commit 6ac8019e1d
2 changed files with 36 additions and 19 deletions

View file

@ -1,4 +1,5 @@
import { IFileObject, Istreams } from './synced/IFileObject';
import { IscanTypes } from '../fileUtils';
import { IFileObject, IFileObjectMin, Istreams } from './synced/IFileObject';
import Ijob from './synced/jobInterface';
export interface IpluginInputUi {
@ -136,6 +137,7 @@ export interface IpluginInputArgs {
updateWorker: IupdateWorker,
logFullCliOutput: boolean,
logOutcome: (outcome: string) => void,
scanIndividualFile?: (filee: IFileObjectMin, scanTypes: IscanTypes) => IFileObject,
deps: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
fsextra: any,