lib/utils.js
function iterateFiles (dir, options, cb) {
  var iterateOptions = {
    ext: [], // extensions to look for
    dirs: false, // do callback for dirs too
    skip_: true, // skip files & dirs starting with _
    recursive: true // do a recursive find
  }

  options = deepMerge(iterateOptions, options)
  // console.log('options: ' + JSON.stringify(options))
  iterateRecurse(dir, options, cb)
}
function iterateFiles (dir, options, cb) {
  var iterateOptions = {
    ext: [], // extensions to look for
    dirs: false, // do callback for dirs too
    skip_: true, // skip files & dirs starting with _
    recursive: true // do a recursive find
  }

  options = deepMerge(iterateOptions, options)
  // console.log('options: ' + JSON.stringify(options))
  iterateRecurse(dir, options, cb)
}
function iterateFiles ( dir , options , cb ) { var iterateOptions = { ext : [ ] , // extensions to look for dirs : false , // do callback for dirs too skip_ : true , // skip files & dirs starting with _ recursive : true // do a recursive find } options = deepMerge ( iterateOptions , options ) // console.log('options: ' + JSON.stringify(options)) iterateRecurse ( dir , options , cb ) }
Iterates through a given folder and calls cb for each file found based on given options
Iterates through a given folder and calls cb for each file found based on given options