I need to select a group of files in various locations that all end similarly with gulp
, my project has the following lay out
Areas
- Booking
--Emails
---BookingEmail_Html_v1.cshtml
---BookingEmail_Text_v1.cshtml
- Allerts
--Emails
---AlertEmail_Html_v2.cshtml
---AlertEmail_Text_v3.cshtml
and i need to select only the Html files from both email sub directories, i have tried the following but as i guessed it did not work.
return del('Areas/*/Emails/*_html_v*.cshtml');
Is there any way to do this?
Try this:
return del('Areas/**/Emails/*_Html_v*.cshtlm');
and make sure your task is in the same folder as Areas
since you are calling it directly, else specify the right path to Areas
.
You would notice the **
and that's for matching any folder.
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.