Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
582 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
---|
4 | const fs = require("fs");
|
---|
5 | exports.FILE_SYSTEM_ADAPTER = {
|
---|
6 | lstat: fs.lstat,
|
---|
7 | stat: fs.stat,
|
---|
8 | lstatSync: fs.lstatSync,
|
---|
9 | statSync: fs.statSync
|
---|
10 | };
|
---|
11 | function createFileSystemAdapter(fsMethods) {
|
---|
12 | if (fsMethods === undefined) {
|
---|
13 | return exports.FILE_SYSTEM_ADAPTER;
|
---|
14 | }
|
---|
15 | return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
---|
16 | }
|
---|
17 | exports.createFileSystemAdapter = createFileSystemAdapter;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.