diff --git a/src/utils/fileUtils.ts b/src/utils/fileUtils.ts index 7b08ad0..bb01e89 100644 --- a/src/utils/fileUtils.ts +++ b/src/utils/fileUtils.ts @@ -1,6 +1,6 @@ import * as fs from "node:fs" -export function createIfNot(dir:string) { - if (!fs.existsSync(dir)) { - fs.mkdirSync(dir, { recursive: true }) +export function createIfNot(filePath:string) { + if (!fs.existsSync(filePath)) { + fs.writeFileSync(filePath, '', { flag: 'wx' }); } -} +} \ No newline at end of file