code: function isDirectory(obj) {
      return obj.sources.every(path => {
          try {
              return fs.lstatSync(path).isDirectory();
          } catch (e) {
              return false;
          }
      });
  }
docs: check that paths exist as directories