🐞 fix: 修复acfun重构后无法删除文件问题

This commit is contained in:
RrOrange 2023-03-31 00:03:04 +08:00
parent 81a027219f
commit 0cf43cba77

View File

@ -150,7 +150,7 @@ async function mergeAcFileToMp4(tsNames, FullFileName, outputFileName, shouldDel
await execFile(cmd, args, { env });
if (shouldDelete) {
await fs.promises.unlink(FullFileName);
fs.unlink(FullFileName, f => f);
}
return { outputFileName };