nvim/coc/extensions/node_modules/coc-go/lib/utils/fs.js

15 lines
No EOL
493 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createDir = void 0;
const tslib_1 = require("tslib");
const fs_1 = tslib_1.__importDefault(require("fs"));
const path_1 = tslib_1.__importDefault(require("path"));
function createDir(dirPath) {
if (fs_1.default.existsSync(dirPath)) {
return;
}
createDir(path_1.default.dirname(dirPath));
fs_1.default.mkdirSync(dirPath);
}
exports.createDir = createDir;
//# sourceMappingURL=fs.js.map