Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

fs.js 734B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. class DirentFromStats {
  4. constructor(name, stats) {
  5. this.name = name;
  6. this.isBlockDevice = stats.isBlockDevice.bind(stats);
  7. this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
  8. this.isDirectory = stats.isDirectory.bind(stats);
  9. this.isFIFO = stats.isFIFO.bind(stats);
  10. this.isFile = stats.isFile.bind(stats);
  11. this.isSocket = stats.isSocket.bind(stats);
  12. this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
  13. }
  14. }
  15. function createDirentFromStats(name, stats) {
  16. return new DirentFromStats(name, stats);
  17. }
  18. exports.createDirentFromStats = createDirentFromStats;