Skip to content

Commit

Permalink
[Fix] Set recursive on mkdir in previewimage job
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavPS committed Mar 18, 2022
1 parent 360a63d commit def8479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content Server/lib/jobs/PreviewImageJob.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class PreviewImageJob extends Job {
output_file = output_dir + "/img%04d.jpg";
}
if (!(await fsExists(output_dir))) {
await fsMkdir(output_dir);
await fsMkdir(output_dir, { recursive: true });
}

return new Promise((resolve, reject) => {
Expand Down

0 comments on commit def8479

Please sign in to comment.