Skip to content

Commit a8e5ce7

Browse files
authored
fix: ensure config solid directory exists
1 parent bab8dfc commit a8e5ce7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/utils/configoptions.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export type ISessionEntry = {
3131
}
3232

3333
export function initializeConfig() {
34+
if (!fs.existsSync(SOLIDDIR)) {
35+
fs.mkdirSync(SOLIDDIR)
36+
}
3437
if (!fs.existsSync(BASHLIBCONFIGPATH)) {
3538
let config: IConfig = {
3639
currentWebID: undefined,
@@ -216,4 +219,4 @@ function loadConfig() : IConfig {
216219
(config.authInfo[webId].session as any).expirationDate = new Date(expirationDate) // idk why its complaining here
217220
}
218221
return config
219-
}
222+
}

0 commit comments

Comments
 (0)