This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Code snipped to use recursive-readdir to provide a list of required file types. | |
var path = require('path'); | |
var recursive = require('recursive-readdir'); | |
function ignoreFunc(file, stats) { | |
// `file` is the absolute path to the file and we can use extname to look at the file extension | |
return stats.isFile() && path.extname(file) != ".zip"; | |
} | |
// Ignore files using the ignroeFunc |