With recurse:
grunt.file.recurse('../products/', function callback(abspath, rootdir, subdir, filename) {
....
How can I get it so it ignores hidden files:
.DS_Store
Check the filename
provided to your callback, and bail out if you don't like it:
function callback(abspath, rootdir, subdir, filename) {
if (filename.startsWith('.')) return;
// Do things
}
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.