sindresorhus / globby

User-friendly glob matching
MIT License
2.49k stars 126 forks source link

The directory contains spaces. The file cannot be found #241

Open tidys opened 1 year ago

tidys commented 1 year ago

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

brentonhouse commented 10 months ago

any update on this?

tidys commented 10 months ago

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