Make cache path creation recursive (#857)

This commit is contained in:
James Galbraith 2021-06-29 09:32:15 +12:00 committed by GitHub
parent da4f293860
commit fd174189a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {