From d6698aaef20b7648c97c8e51a64a00ba22a20d88 Mon Sep 17 00:00:00 2001 From: David Murdoch Date: Wed, 12 Feb 2020 17:31:32 -0500 Subject: [PATCH] Add comment about what bug the tmpDir fixes --- lib/database/filedown.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/database/filedown.js b/lib/database/filedown.js index 786c5252ae..5c7f195a11 100644 --- a/lib/database/filedown.js +++ b/lib/database/filedown.js @@ -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