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

Function add

scan-worker.js:173–178  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

171/** macOS ZIP junk: __MACOSX folder entries and AppleDouble (._*) resource forks */
172function isMacOsJunkZipEntry(entryPath) {
173 if (!entryPath) return false;
174 const normalized = entryPath.replace(/\\/g, '/');
175 if (normalized.split('/').some((seg) => seg.toLowerCase() === '__macosx')) return true;
176 const base = path.basename(entryPath);
177 return base.startsWith('._');
178}
179
180function buildScanExtensionSet(scanExtensions) {
181 const set = new Set();

Callers 1

buildScanExtensionSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected