Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit cd85c2e

Browse files
richardschneiderdaviddias
authored andcommitted
fix: glob requires a POSIX path
1 parent 895aec2 commit cd85c2e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/get-files-stream.js

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ function loadPaths (opts, file) {
4646
}
4747

4848
if (stats.isDirectory() && opts.recursive) {
49+
// glob requires a POSIX filename
50+
file = file.split(path.sep).join('/')
4951
const globEscapedDir = escape(file) + (file.endsWith('/') ? '' : '/')
5052
const mg = new glob.sync.GlobSync(`${globEscapedDir}` + '**/*', {
5153
follow: followSymlinks,

0 commit comments

Comments
 (0)