From fd174189a182d14cb8220a926a574396611364dc Mon Sep 17 00:00:00 2001 From: James Galbraith <52896585+DecentralisedTech@users.noreply.github.com> Date: Tue, 29 Jun 2021 09:32:15 +1200 Subject: [PATCH] Make cache path creation recursive (#857) --- src/client/authFlow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/authFlow.js b/src/client/authFlow.js index b8c5871..2396e8c 100644 --- a/src/client/authFlow.js +++ b/src/client/authFlow.js @@ -41,7 +41,7 @@ class MsAuthFlow { let cachePath = cacheDir || mcDefaultFolderPath try { if (!fs.existsSync(cachePath + '/nmp-cache')) { - fs.mkdirSync(cachePath + '/nmp-cache') + fs.mkdirSync(cachePath + '/nmp-cache', { recursive: true }) } cachePath += '/nmp-cache' } catch (e) {