Exclude 'images/misc' directory from file collection (#96)

Updates the unreferenced_images workflow to skip the 'misc' directory under 'images' when collecting files. This prevents files in 'images/misc' from being processed.
This commit is contained in:
Ian Bassi
2026-01-09 11:43:06 -03:00
committed by GitHub
parent 7637e98a27
commit 7feac14b81

View File

@@ -54,6 +54,7 @@ jobs:
}
for (const entry of entries) {
if (entry.name === '.git') continue;
if (relativeDir === 'images' && entry.isDirectory() && entry.name === 'misc') continue;
const rel = relativeDir ? `${relativeDir}/${entry.name}` : entry.name;
if (entry.isDirectory()) {
files.push(...collectFilesUnder(rel, extSet));