Add directory filtering to globber (#728)

Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
This commit is contained in:
Matisse HackandThomas Boop authored and GitHub committed 2021-06-01 15:57:03 -04:00
1 parent 53c02d5b01
commit 1ab582225b
4 files changed
+60 -1

No files matched your search

+1 -1
View File
@@ -131,7 +131,7 @@ export class DefaultGlobber implements Globber {
// Directory
if (stats.isDirectory()) {
// Matched
if (match & MatchKind.Directory) {
if (match & MatchKind.Directory && options.matchDirectories) {
yield item.path
}
// Descend?