Get matched folder from gulp src path using glob

168 Views Asked by At

Consider this which checks for JS files in either of two specific locations:

gulp.src( "@(Branch|Main)/*.js" ).pipe( _do-stuff_ )

How does one get which folder was matched (Main or Branch) for the current file(s)?

0

There are 0 best solutions below