diff --git a/server/config.ts b/server/config.ts index 8c47b8e..01fe8e6 100644 --- a/server/config.ts +++ b/server/config.ts @@ -2,12 +2,13 @@ import io from './lib/io.js' export default class Config { static ensureAllDirsAreCreated() { - for (const key of Object.keys(Config.dirs)) { + for (const key of Object.keys(Config.dirs) as Array) { io.mkdirs(Config.dirs[key]) } } static BASE_DIR = 'whitesilk_data' - static dirs : { [key: string]: string } = { - WEB_PAGE_DIR: this.BASE_DIR + '/_webpage' + static dirs = { + WEB_PAGE_DIR: this.BASE_DIR + '/_webpage', + DATABASES_DIR: this.BASE_DIR + '/databases', } }