pull/213/head
xiaojunnuo 2024-10-15 13:11:40 +08:00
parent 7eebfb35ce
commit 64c4933645
1 changed files with 2 additions and 2 deletions

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)) {