mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Auth middleware polish
This commit is contained in:
parent
81db237b48
commit
5f0b17a0db
5 changed files with 68 additions and 29 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue