Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wadhah101 committed Jun 24, 2021
1 parent e2a9c6e commit 6080238
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions MarkDownToPdfScript/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,12 @@ export const work = async (source: string, target: string): Promise<void> => {

const pdfBufferArray = await Promise.all(pdfBufferPromiseArray);

console.log();

const targetDir = path.parse(target).dir;

await fsp
.access(targetDir)
.catch(() => fsp.mkdir(targetDir, { recursive: true }));

console.log(pdfBufferArray);
return;

const zipFile = new AdmZip();
pdfBufferArray.forEach((e) => e && zipFile.addFile(e.name, e.file));
zipFile.writeZip(target);
Expand Down

0 comments on commit 6080238

Please sign in to comment.