log ignored files

This commit is contained in:
Ryan Ghadimi 2025-05-06 18:10:37 +00:00
parent 1b1e81526b
commit 0a7ac702c0

View File

@ -104,6 +104,7 @@ export class DefaultGlobber implements Globber {
// Search // Search
const traversalChain: string[] = [] // used to detect cycles const traversalChain: string[] = [] // used to detect cycles
let loggedFirstHiddenMessage: boolean = false // if printing hidden, is this the first one
while (stack.length) { while (stack.length) {
// Pop // Pop
const item = stack.pop() as SearchState const item = stack.pop() as SearchState
@ -130,6 +131,11 @@ export class DefaultGlobber implements Globber {
// Hidden file or directory? // Hidden file or directory?
if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) { if (options.excludeHiddenFiles && path.basename(item.path).match(/^\./)) {
if(!loggedFirstHiddenMessage) {
core.info(`Ignoring the following hidden files and directories`)
loggedFirstHiddenMessage = true
}
core.info(`- ${item.path}`)
continue continue
} }