Files
XCDesktop/dist-api/chunk-FTVFWJFJ.js

21 lines
346 B
JavaScript
Raw Normal View History

import {
PATHS
} from "./chunk-74TMTGBG.js";
// api/utils/tempDir.ts
import { existsSync, mkdirSync } from "fs";
var tempDir = null;
var getTempDir = () => {
if (!tempDir) {
tempDir = PATHS.TEMP_ROOT;
if (!existsSync(tempDir)) {
mkdirSync(tempDir, { recursive: true });
}
}
return tempDir;
};
export {
getTempDir
};