Skip to content

Commit fec20dd

Browse files
committed
Skip folders
1 parent 57ba576 commit fec20dd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/globber.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ function globber(paths) {
66
const files = new Rx.Subject();
77
files.fileEvents = [];
88

9-
const Glob = glob.Glob;
109
let doneCount = 0;
1110

1211
paths.forEach(function (path) {
13-
const fileEvents = new Glob(path);
12+
const fileEvents = new glob.Glob(path, {
13+
nodir: true
14+
});
1415

1516
fileEvents.on('match', function (file) {
1617
files.onNext(file);
@@ -23,7 +24,7 @@ function globber(paths) {
2324
});
2425

2526
files.fileEvents.push(fileEvents);
26-
})
27+
});
2728

2829
return files;
2930
}

0 commit comments

Comments
 (0)