MCPcopy Create free account
hub / github.com/TechJeeper/Printventory / shouldQueueFile

Function shouldQueueFile

scan-worker.js:223–228  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

221function buildScanExtensionSet(scanExtensions) {
222 const set = new Set();
223 const add = (raw) => {
224 if (raw == null || raw === '') return;
225 const s = String(raw).trim().toLowerCase();
226 if (!s) return;
227 set.add(s.startsWith('.') ? s : `.${s}`);
228 };
229 BASE_SCAN_EXTENSIONS.forEach(add);
230 if (Array.isArray(scanExtensions)) {
231 for (const ext of scanExtensions) add(ext);

Callers 1

processDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected