From f2f1dd51ef77a7091c32776afc29cf9b13d0f46d Mon Sep 17 00:00:00 2001 From: benbierens Date: Mon, 1 Apr 2024 09:21:32 +0200 Subject: [PATCH] Create circuit dir if not exists --- codex.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codex.nim b/codex.nim index e0cb598e..a55e0fc5 100644 --- a/codex.nim +++ b/codex.nim @@ -67,6 +67,9 @@ when isMainModule: # permissions are insecure. quit QuitFailure + if not(checkAndCreateDataDir((config.circuitDir).string)): + quit QuitFailure + trace "Data dir initialized", dir = $config.dataDir if not(checkAndCreateDataDir((config.dataDir / "repo"))):