Skip to content

Commit

Permalink
write file before generating html
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerthatdev committed Jul 22, 2023
1 parent 3ac013a commit 8280e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run/filesystem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ app.listen(port, () => {
app.get(mntDir, async (req, res) => {
// Have all requests to mount directory generate a new file on the filesystem.
try {
writeFile(mntDir);
const html = await generateIndex(mntDir);
await writeFile(mntDir);
// Respond with html with list of files on the filesystem.
res.send(html);
} catch (error) {
Expand Down

0 comments on commit 8280e8a

Please sign in to comment.