简体   繁体   中英

Expanding directory in Node.js glob

If I'm passing to the glob some masks like this some/path/*.txt -everything is ok. But when I'm passing this mask some/path - it will not expand this directory. Is it some option for expanding directories?

只需使用*而无需任何扩展名,这样它将扩展到目录中的所有元素:

some/path/*

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM