You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
503 B

4 years ago
  1. /*
  2. MIT License http://www.opensource.org/licenses/mit-license.php
  3. Author Tobias Koppers @sokra
  4. */
  5. "use strict";
  6. const fs = require("fs");
  7. const path = require("path");
  8. const mkdirp = require("mkdirp");
  9. class NodeOutputFileSystem {
  10. constructor() {
  11. this.mkdirp = mkdirp;
  12. this.mkdir = fs.mkdir.bind(fs);
  13. this.rmdir = fs.rmdir.bind(fs);
  14. this.unlink = fs.unlink.bind(fs);
  15. this.writeFile = fs.writeFile.bind(fs);
  16. this.join = path.join.bind(path);
  17. }
  18. }
  19. module.exports = NodeOutputFileSystem;