diff --git a/src/main/java/org/metanorma/stepmod2mn.java b/src/main/java/org/metanorma/stepmod2mn.java index 360bbd9..72f5112 100644 --- a/src/main/java/org/metanorma/stepmod2mn.java +++ b/src/main/java/org/metanorma/stepmod2mn.java @@ -622,7 +622,7 @@ private static void runoptions(String[] args) throws ParseException { String collectionOutputPath = argOutputPath; if (isStandaloneXML || isDocumentsGenerationMode) { // get parent folder - collectionOutputPath = new File(argOutputPath).getParent().toString(); + collectionOutputPath = new File(argOutputPath).getParent(); } if (collectionOutputPath == null || collectionOutputPath.isEmpty()) { collectionOutputPath = inputFolder;