source: imaps-frontend/node_modules/@nodelib/fs.scandir/out/adapters/fs.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 640 bytes
RevLine 
[d565449]1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4const fs = require("fs");
5exports.FILE_SYSTEM_ADAPTER = {
6 lstat: fs.lstat,
7 stat: fs.stat,
8 lstatSync: fs.lstatSync,
9 statSync: fs.statSync,
10 readdir: fs.readdir,
11 readdirSync: fs.readdirSync
12};
13function createFileSystemAdapter(fsMethods) {
14 if (fsMethods === undefined) {
15 return exports.FILE_SYSTEM_ADAPTER;
16 }
17 return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
18}
19exports.createFileSystemAdapter = createFileSystemAdapter;
Note: See TracBrowser for help on using the repository browser.