This commit is contained in:
xiaojunnuo
2024-10-15 13:11:40 +08:00
parent 7eebfb35ce
commit 64c4933645

View File

@@ -1,8 +1,8 @@
import fs from "fs";
import fs from 'fs';
function getFileRootDir(rootDir?: string) {
if (rootDir == null) {
const userHome = process.env.HOME || process.env.USERPROFILE;
rootDir = userHome + "/.certd/storage/";
rootDir = userHome + '/.certd/storage/';
}
if (!fs.existsSync(rootDir)) {