[英]Expanding directory in Node.js glob
If I'm passing to the glob some masks like this some/path/*.txt
-everything is ok. 如果我将这些掩码传递给了glob,那么一些掩码就可以了,例如
some/path/*.txt
。txt-一切正常。 But when I'm passing this mask some/path
- it will not expand this directory. 但是,当我通过这个掩码
some/path
-它不会扩展此目录。 Is it some option for expanding directories? 是否有一些扩展目录的选项?
只需使用*
而无需任何扩展名,这样它将扩展到目录中的所有元素:
some/path/*
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.