What does ** mean on the road?

ive configured Grunt for my web application to automatically create it and see paths such as

/path/to/file/**/*.js 

I understand what a single pattern means, but what does 2 per line mean?

+4
source share
1 answer

/path/to/file/**/*.js matches any number of directories between /path/to/file/ and /*.js . Unlike /path/to/file/*/*.js , which corresponds to one directory between /path/to/file/ and /*.js .

+11
source

Source: https://habr.com/ru/post/1487204/


All Articles