You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
775 B

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