source: trip-planner-front/node_modules/@nodelib/fs.walk/out/settings.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const path = require("path");
4const fsScandir = require("@nodelib/fs.scandir");
5class Settings {
6 constructor(_options = {}) {
7 this._options = _options;
8 this.basePath = this._getValue(this._options.basePath, undefined);
9 this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY);
10 this.deepFilter = this._getValue(this._options.deepFilter, null);
11 this.entryFilter = this._getValue(this._options.entryFilter, null);
12 this.errorFilter = this._getValue(this._options.errorFilter, null);
13 this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
14 this.fsScandirSettings = new fsScandir.Settings({
15 followSymbolicLinks: this._options.followSymbolicLinks,
16 fs: this._options.fs,
17 pathSegmentSeparator: this._options.pathSegmentSeparator,
18 stats: this._options.stats,
19 throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink
20 });
21 }
22 _getValue(option, value) {
23 return option !== null && option !== void 0 ? option : value;
24 }
25}
26exports.default = Settings;
Note: See TracBrowser for help on using the repository browser.