Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Add comment about what bug the tmpDir fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Feb 12, 2020
1 parent 17cece5 commit d6698aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/database/filedown.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function FileDown(location) {
this.location = location;
const tmpDir = path.join(location, "_tmp");
try {
// Fixes https://github.com/trufflesuite/ganache/issues/1617
fs.mkdirSync(tmpDir, { recursive: true, mode: 0o1777 });
} catch (e) {
// `recursive` doesn't throw if the file exists, but `recursive` doesn't
Expand Down

0 comments on commit d6698aa

Please sign in to comment.