Skip to content

Commit

Permalink
fix: mkdir recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
pociej committed Apr 25, 2024
1 parent 323b0df commit c2a65b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/services/file/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ export const fileService = fastifyPlugin(
}

try {
await mkdir(DIR_NAME);
await mkdir(DIR_NAME, {
recursive: true,
});
} catch (e) {
console.log("Error creating directory", e);
}
Expand Down

0 comments on commit c2a65b9

Please sign in to comment.