Skip to content

Commit cd92982

Browse files
committed
log skipped directories on debug mode
1 parent bb283eb commit cd92982

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ function crawl(options: GlobOptions, cwd: string, sync: boolean) {
219219
const relativePath = processPath(p, cwd, props.root, true, true);
220220
const skipped = (relativePath !== '.' && !partialMatcher(relativePath)) || ignore(relativePath);
221221

222-
if (!skipped) {
222+
if (skipped) {
223+
log(`skipped ${p}`);
224+
} else {
223225
log(`crawling ${p}`);
224226
}
225227

0 commit comments

Comments
 (0)