Add explicit error on Windows

This commit is contained in:
Henry Mercer
2026-05-07 15:39:42 +01:00
parent 2c9cd77837
commit 0c80cee806
5 changed files with 16 additions and 0 deletions

View File

@@ -127577,6 +127577,9 @@ async function scanArchiveFile(archivePath, relativeArchivePath, extractDir, log
`Maximum archive extraction depth (${MAX_DEPTH}) reached for ${archivePath}`
);
}
if (process.platform === "win32") {
throw new Error("Scanning archives is not supported on Windows.");
}
const result = {
scannedFiles: 0,
findings: []