Urara-Blog/node_modules/.pnpm-store/v3/files/dc/b91f45ee7fffecdfcae8338deb81a144ac72ee2caf5e8eda79a2387e28862ab1c249639199e22a6026638386c1c7990f857a601ac580858445cae04aa5a274
2022-08-14 01:14:53 +08:00

19 lines
756 B
Text

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createDirentFromStats = void 0;
class DirentFromStats {
constructor(name, stats) {
this.name = name;
this.isBlockDevice = stats.isBlockDevice.bind(stats);
this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
this.isDirectory = stats.isDirectory.bind(stats);
this.isFIFO = stats.isFIFO.bind(stats);
this.isFile = stats.isFile.bind(stats);
this.isSocket = stats.isSocket.bind(stats);
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
}
}
function createDirentFromStats(name, stats) {
return new DirentFromStats(name, stats);
}
exports.createDirentFromStats = createDirentFromStats;