docs: function isRealDirectory(p) {
      var stats;
      try {
          stats = fs.statSync(p);
      } catch (error) {
          // Not a valid path if stat fails.
          return false;
      }
      
      return (stats.isDirectory());
  }