From 0faaac49cfaa7018923705f85316ebfe23bde989 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Mon, 10 Oct 2016 17:02:51 +0200 Subject: [PATCH] The taxonomy directory of the DMS is now automatically created with the DMS --- src/obidms.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/obidms.c b/src/obidms.c index 872f383..afdfc27 100644 --- a/src/obidms.c +++ b/src/obidms.c @@ -282,7 +282,7 @@ OBIDMS_p obi_create_dms(const char* dms_path) if (mkdirat(dms_file_descriptor, INDEXER_DIR_NAME, 00777) < 0) { obi_set_errno(OBI_INDEXER_ERROR); - obidebug(1, "\nProblem creating an indexer directory"); + obidebug(1, "\nProblem creating the indexer directory"); return NULL; } @@ -290,7 +290,15 @@ OBIDMS_p obi_create_dms(const char* dms_path) if (mkdirat(dms_file_descriptor, VIEW_DIR_NAME, 00777) < 0) { obi_set_errno(OBIVIEW_ERROR); - obidebug(1, "\nProblem creating a view directory"); + obidebug(1, "\nProblem creating the view directory"); + return NULL; + } + + // Create the taxonomy directory + if (mkdirat(dms_file_descriptor, TAXONOMY_DIR_NAME, 00777) < 0) + { + obi_set_errno(OBIVIEW_ERROR); + obidebug(1, "\nProblem creating the taxonomy directory"); return NULL; }