FsaNodeDirent.js 670 B

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