Auth middleware polish

This commit is contained in:
MrFry 2020-04-06 22:28:14 +02:00
parent 81db237b48
commit 5f0b17a0db
5 changed files with 68 additions and 29 deletions

View file

@ -78,7 +78,10 @@ function CreatePath (path, onlyPath) {
}
currDir += '/' + p[i]
}
if (onlyPath === undefined || onlyPath === false) { fs.writeFileSync(path, '') } else { fs.mkdirSync(path) }
if (onlyPath === undefined || onlyPath === false) {
} else {
fs.mkdirSync(path)
}
}
function WriteFile (content, path) {