NfsFsDirent.js 695 B

1234567891011121314151617181920212223242526272829303132
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.NfsFsDirent = void 0;
  4. class NfsFsDirent {
  5. constructor(name, type) {
  6. this.name = name;
  7. this.type = type;
  8. }
  9. isDirectory() {
  10. return this.type === 2;
  11. }
  12. isFile() {
  13. return this.type === 1;
  14. }
  15. isBlockDevice() {
  16. return this.type === 3;
  17. }
  18. isCharacterDevice() {
  19. return this.type === 4;
  20. }
  21. isSymbolicLink() {
  22. return this.type === 5;
  23. }
  24. isFIFO() {
  25. return this.type === 7;
  26. }
  27. isSocket() {
  28. return this.type === 6;
  29. }
  30. }
  31. exports.NfsFsDirent = NfsFsDirent;
  32. //# sourceMappingURL=NfsFsDirent.js.map