ZZZ-Plugin/utils/file.js
2024-07-08 22:17:31 +08:00

6 lines
170 B
JavaScript

import fs from 'fs';
export function checkFolderExistAndCreate(folderPath) {
if (!fs.existsSync(folderPath)) {
fs.mkdirSync(folderPath, { recursive: true });
}
}