aboutsummaryrefslogtreecommitdiff
path: root/node_modules/copy-webpack-plugin/dist/utils/statPromise.js
blob: 4f421bfb99faef695b4d37571bbd4b7ba656033c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict";

Object.defineProperty(exports, "__esModule", {
    value: true
});

exports.default = function (inputFileSystem, path) {
    return new Promise(function (resolve, reject) {
        inputFileSystem.stat(path, function (err, stats) {
            if (err) {
                return reject(err);
            }

            return resolve(stats);
        });
    });
};