code: function (basepath, action, recursive) {
    var isDirectory = function (target) {
      return fs.statSync(target).isDirectory();
    };
    var nextLevel = function (subpath) {
      _.each(fs.readdirSync(path.join(basepath, subpath)), function (filename) {
        if (isDirectory(path.join(basepath, (filename = path.join(subpath, filename))))) {
          if (recursive) {
            nextLevel(filename);
          }
        } else {
          action(filename);
        }
      });
    };
    nextLevel('./');
  }
docs: recursive read each file in directories