Add directory filtering to globber (#728)
Co-authored-by: Thomas Boop <[email protected]>
This commit is contained in:
co-authored by
Thomas Boop
parent
51dc07a106
commit
439eaced07
@@ -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