(fileName)
| 221 | } |
| 222 | }); |
| 223 | }); |
| 224 | } |
| 225 | |
| 226 | async function scanDirectory(directoryPath, maxFileSize, enableZipArchives = false, scanExtensions = null) { |
| 227 | const files = []; |
| 228 | /** Every file-type dirent seen while walking the tree (matches legacy totalFiles meaning). */ |
| 229 | let traversedFileEntries = 0; |
| 230 | const extSet = buildScanExtensionSet(scanExtensions); |
| 231 | const SCAN_FLUSH_BATCH = 400; |