Gulp path wildcard for second part of a folder name? -


with gulp can see wildcards in path 'src/**/*'.

how can set wildcard second part of folder name?

if have these folders:

src/match-1 src/match-2 src/dont-match 

how can match first two? tried doesnt match anything:

'src/match-**/*'

check @you's comment answer. here's why works:

in **/* doesn't mean "wildcard!" it's saying

in directory or subdirectory (**) match file name (*)

(more strictly speaking, "in directory or non-symlinked subdirectory, add on number or characters")

that's why want src/match-* - * suspect thought **/* did.

to familiarize globbing, read through @isaacs' glob primer , write tests globtester


Comments