NfsFsStats.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.NfsFsStats = void 0;
  4. class NfsFsStats {
  5. constructor(uid, gid, rdev, blksize, ino, size, blocks, atime, mtime, ctime, birthtime, atimeMs, mtimeMs, ctimeMs, birthtimeMs, dev, mode, nlink, type) {
  6. this.uid = uid;
  7. this.gid = gid;
  8. this.rdev = rdev;
  9. this.blksize = blksize;
  10. this.ino = ino;
  11. this.size = size;
  12. this.blocks = blocks;
  13. this.atime = atime;
  14. this.mtime = mtime;
  15. this.ctime = ctime;
  16. this.birthtime = birthtime;
  17. this.atimeMs = atimeMs;
  18. this.mtimeMs = mtimeMs;
  19. this.ctimeMs = ctimeMs;
  20. this.birthtimeMs = birthtimeMs;
  21. this.dev = dev;
  22. this.mode = mode;
  23. this.nlink = nlink;
  24. this.type = type;
  25. }
  26. isDirectory() {
  27. return this.type === 2;
  28. }
  29. isFile() {
  30. return this.type === 1;
  31. }
  32. isBlockDevice() {
  33. return this.type === 3;
  34. }
  35. isCharacterDevice() {
  36. return this.type === 4;
  37. }
  38. isSymbolicLink() {
  39. return this.type === 5;
  40. }
  41. isFIFO() {
  42. return this.type === 7;
  43. }
  44. isSocket() {
  45. return this.type === 6;
  46. }
  47. }
  48. exports.NfsFsStats = NfsFsStats;
  49. //# sourceMappingURL=NfsFsStats.js.map