code: function Prompt() {
      Base.apply(this, arguments);
      if (!this.opt.basePath) {
          this.throwParamError('basePath');
      }
      try {
          this.opt.displayHidden = this.opt.options.displayHidden;
      } catch (e) {
          this.opt.displayHidden = false;
      }
  
      try {
          this.opt.displayFiles = this.opt.options.displayFiles;
      } catch (e) {
          this.opt.displayFiles = false;
      }
      this.currentPath = path.isAbsolute(this.opt.basePath) ? path.resolve(this.opt.basePath) : path.resolve(process.cwd(), this.opt.basePath);
      this.root = path.parse(this.currentPath).root;
      this.opt.choices = new Choices(this.createChoices(this.currentPath), this.answers);
      this.selected = 0;
  
      // Make sure no default is set (so it won"t be printed)
      this.opt.default = null;
  
      this.searchTerm = '';
  
      this.paginator = new Paginator();
  }
docs: Constructor