UNPKG

@fdm-monster/server

Version:

FDM Monster is a bulk OctoPrint manager to set up, configure and monitor 3D printers. Our aim is to provide extremely optimized websocket performance and reliability.

38 lines (37 loc) 866 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { ensureDirExists: function() { return ensureDirExists; }, rootPath: function() { return rootPath; }, superRootPath: function() { return superRootPath; } }); const _nodefs = require("node:fs"); const _path = require("path"); function superRootPath() { return (0, _path.join)(__dirname, "../.."); } function rootPath() { return (0, _path.join)(__dirname, ".."); } function ensureDirExists(dir) { if (!(0, _nodefs.existsSync)(dir)) { (0, _nodefs.mkdirSync)(dir, { recursive: true }); } } //# sourceMappingURL=fs.utils.js.map