globby icon indicating copy to clipboard operation
globby copied to clipboard

issue in windows

Open yellowjian opened this issue 3 years ago • 2 comments

image

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

yellowjian avatar Jul 07 '21 03:07 yellowjian

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

thank you

fschwalm avatar Nov 30 '21 20:11 fschwalm

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, '/'))

rmcooper avatar Dec 09 '21 23:12 rmcooper