From 1da1d49b0ca194edbf402e75e521fc0e79a98a0a Mon Sep 17 00:00:00 2001 From: Steven Bedrick Date: Sat, 29 Apr 2023 15:22:58 -0700 Subject: [PATCH] Fixed logic issue involving subdirectories during index creation. In cases where the target ivfDir does not already exist, only some of the necessary subdirectories were being created, leading to exceptions on index creation. --- .../gov/nih/nlm/nls/metamap/dfbuilder/CreateIndexes.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/gov/nih/nlm/nls/metamap/dfbuilder/CreateIndexes.java b/src/main/java/gov/nih/nlm/nls/metamap/dfbuilder/CreateIndexes.java index 7e42768..5b5584e 100644 --- a/src/main/java/gov/nih/nlm/nls/metamap/dfbuilder/CreateIndexes.java +++ b/src/main/java/gov/nih/nlm/nls/metamap/dfbuilder/CreateIndexes.java @@ -220,6 +220,13 @@ static void prepareDirectories(String ivfdir) ivfDir.mkdir(); tablesDir.mkdir(); indicesDir.mkdir(); + + cuiconceptDir.mkdir(); + cuisourceinfoDir.mkdir(); + cuistDir.mkdir(); + meshtcrelaxedDir.mkdir(); + varsDir.mkdir(); + } }