Add directory filtering to globber (#728)
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
This commit is contained in:
1 parent
53c02d5b01
commit
1ab582225b
4 files changed
+60
-1
No files matched your search
@@ -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?
|
||||
|
||||
Reference in new issue
Block a user