From 6c5fedd4569a2662bbfd0d25d0c629c08aae7aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Schulthess?= Date: Wed, 14 Aug 2024 19:49:48 +0200 Subject: [PATCH] create identities directory if it does not exist --- src/main/java/org/qortal/network/RNSNetwork.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/qortal/network/RNSNetwork.java b/src/main/java/org/qortal/network/RNSNetwork.java index c2efa889..35a6895c 100644 --- a/src/main/java/org/qortal/network/RNSNetwork.java +++ b/src/main/java/org/qortal/network/RNSNetwork.java @@ -102,6 +102,10 @@ public class RNSNetwork { initConfig(defaultConfigPath); //reticulum = new Reticulum(configPath); reticulum = new Reticulum(defaultConfigPath); + var identitiesPath = reticulum.getStoragePath().resolve("identities"); + if (Files.notExists(identitiesPath)) { + Files.createDirectories(identitiesPath); + } } catch (IOException e) { log.error("unable to create Reticulum network", e); }