PosixFS.js 507 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.PosixFS = void 0;
  4. const ProxiedFS_1 = require("./ProxiedFS");
  5. const path_1 = require("./path");
  6. class PosixFS extends ProxiedFS_1.ProxiedFS {
  7. constructor(baseFs) {
  8. super(path_1.npath);
  9. this.baseFs = baseFs;
  10. }
  11. mapFromBase(path) {
  12. return path_1.npath.fromPortablePath(path);
  13. }
  14. mapToBase(path) {
  15. return path_1.npath.toPortablePath(path);
  16. }
  17. }
  18. exports.PosixFS = PosixFS;