mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
Make cache path creation recursive (#857)
This commit is contained in:
parent
da4f293860
commit
fd174189a1
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue