修复脚本调试保存文件错误

This commit is contained in:
whyour
2025-12-11 01:52:47 +08:00
parent c5d2aa3aba
commit c772fc9527
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -176,6 +176,7 @@ export default (app: Router) => {
path,
`${originFilename.replace(/\//g, '')}`,
);
await fs.mkdir(path, { recursive: true });
const filePath = join(path, `${filename.replace(/\//g, '')}`);
const fileExists = await fileExist(filePath);
if (fileExists) {