"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkPathExists = void 0;
const fs_1 = require("fs");
const checkPathExists = (path) => new Promise((resolve, reject) => {
    (0, fs_1.stat)(path, function (err) {
        if (err == null) {
            resolve(true);
        }
        else if (err.code === 'ENOENT') {
            resolve(false);
        }
        else {
            reject(err);
        }
    });
});
exports.checkPathExists = checkPathExists;
