Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

fs.js 586B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const fs = require("fs");
  4. exports.FILE_SYSTEM_ADAPTER = {
  5. lstat: fs.lstat,
  6. stat: fs.stat,
  7. lstatSync: fs.lstatSync,
  8. statSync: fs.statSync,
  9. readdir: fs.readdir,
  10. readdirSync: fs.readdirSync
  11. };
  12. function createFileSystemAdapter(fsMethods) {
  13. if (fsMethods === undefined) {
  14. return exports.FILE_SYSTEM_ADAPTER;
  15. }
  16. return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
  17. }
  18. exports.createFileSystemAdapter = createFileSystemAdapter;