diff --git a/convert/convertBooks.ts b/convert/convertBooks.ts index 3e059ecc..7f585c27 100644 --- a/convert/convertBooks.ts +++ b/convert/convertBooks.ts @@ -159,7 +159,7 @@ export async function convertBooks( fs.cpSync(folderSrcDir, folderDstDir, { recursive: true }); } else { if (fs.existsSync(folderDstDir)) { - fs.rmdirSync(folderDstDir, { recursive: true }); + fs.rmSync(folderDstDir, { recursive: true, force: true }); } } });