This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/fast-glob/out/adapters/fs.js

25 lines
728 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var path = require("path");
var FileSystem = /** @class */ (function () {
function FileSystem(options) {
this.options = options;
}
/**
* Return full path to entry.
*/
FileSystem.prototype.getFullEntryPath = function (filepath) {
return path.resolve(this.options.cwd, filepath);
};
/**
* Return an implementation of the Entry interface.
*/
FileSystem.prototype.makeEntry = function (stat, pattern) {
stat.path = pattern;
stat.depth = pattern.split('/').length;
return stat;
};
return FileSystem;
}());
exports.default = FileSystem;