stopWatchingDir(dir) {
    if (this.dirWatchers[dir]) {
      this.dirWatchers[dir].close();
      // There's no object spread, so just delete the key
      delete this.dirWatchers[dir];
    }
  }
@param {string} dir The directory name