globby icon indicating copy to clipboard operation
globby copied to clipboard

The directory contains spaces. The file cannot be found

Open tidys opened this issue 2 years ago • 2 comments

I use '11.0.0', and there is a txt under the directory

const ret = globby.sync('D:/Program Files (x86)/1/*.txt');
console.log(ret)

The result is that we can't find it. We trace the underlying code and find that there is a problem with regular matching

Another problem is that the directory partition must be /. Windows\\will also result in empty results

tidys avatar Dec 03 '22 07:12 tidys

any update on this?

brentonhouse avatar Sep 20 '23 21:09 brentonhouse

Due to a change in API writing, I had to choose version 11.0.0, which I did not attempt

tidys avatar Sep 21 '23 01:09 tidys