sindresorhus / globby

User-friendly glob matching
MIT License
2.51k stars 130 forks source link

issue in windows #179

Open yellowjian opened 3 years ago

yellowjian commented 3 years ago

image

use await globby(globPattern) and has files in globPattern. but globby cannot find any file in pattern.

fschwalm commented 2 years ago

Hello @yellowjian! Do you found any solutions or workarounds?

thank you

rmcooper commented 2 years ago

Came here with the same problem, but after some research found that the glob pattern must only contain forward slashes. For example:

await globby(path.join(__dirname, 'files', '**').replace(/\\/g, '/'))