Skip to content

Commit

Permalink
fix(public/fs): fixes rw fs.ensureDir call
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed May 1, 2019
1 parent 76da0d0 commit 9fad602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/fs/rw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function rw(

if (!(await confirm(`Write "${relative}"?`, options))) return;

await fs.ensureDir(file).catch(rejects);
await fs.ensureDir(path.parse(file).dir).catch(rejects);
await fs.writeFile(file, String(response)).catch(rejects);
logger.info(`Written: ${relative}`);
};
Expand Down

0 comments on commit 9fad602

Please sign in to comment.