Closed aderbedr closed 7 years ago
Glanced at code. The usage if "this" when using arrow functions changes the behavior of "this" and is no longer relative to the interior block. Will test to see where issue may be and get back.
I have a fix implemented/tested. Patch incoming.
Resolved in version v3.0.0
If ifDirExists fails and it gets to the catch block, "this" is undefined, which then it goes to set tempDir of undefined and fails. You cannot access "this" inside a promise block to my knowledge.