AliasFS.js 557 B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.AliasFS = void 0;
  4. const ProxiedFS_1 = require("./ProxiedFS");
  5. class AliasFS extends ProxiedFS_1.ProxiedFS {
  6. constructor(target, { baseFs, pathUtils }) {
  7. super(pathUtils);
  8. this.target = target;
  9. this.baseFs = baseFs;
  10. }
  11. getRealPath() {
  12. return this.target;
  13. }
  14. getBaseFs() {
  15. return this.baseFs;
  16. }
  17. mapFromBase(p) {
  18. return p;
  19. }
  20. mapToBase(p) {
  21. return p;
  22. }
  23. }
  24. exports.AliasFS = AliasFS;