mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
not failing on invalid p2p files
This commit is contained in:
parent
e46fed69c3
commit
dbe6272240
4 changed files with 20 additions and 5 deletions
|
@ -24,6 +24,7 @@ export const validateFiles = (): boolean => {
|
|||
Object.entries(files).forEach(([key, file]: [string, FileDescriptor]) => {
|
||||
let fileExists = utils.FileExists(file.path)
|
||||
if (file.defaultValue != null && !fileExists) {
|
||||
// FIXME: create path too
|
||||
utils.WriteFile(file.defaultValue, file.path)
|
||||
fileExists = true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue