lib/picklr.js
function (stats, p) {
    let result = stats.isDirectory();

    if (result) {
      result = !this.excludeDirs.test(p);
    }

    return result;
  }
function (stats, p) {
    let result = stats.isDirectory();

    if (result) {
      result = !this.excludeDirs.test(p);
    }

    return result;
  }
Directory type determination.

@private
@returns true if given path is a directory.