From eba6a08a96a52e5e9a6a1dcc97bcdbc6a6504482 Mon Sep 17 00:00:00 2001 From: ArenMg Date: Sun, 23 May 2021 01:13:39 +0300 Subject: [PATCH] Resolve debate export problem --- src/main/java/fr/lirmm/aren/service/ODFService.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/fr/lirmm/aren/service/ODFService.java b/src/main/java/fr/lirmm/aren/service/ODFService.java index 36e145f..d06a8f1 100644 --- a/src/main/java/fr/lirmm/aren/service/ODFService.java +++ b/src/main/java/fr/lirmm/aren/service/ODFService.java @@ -104,6 +104,13 @@ public class ODFService { row.appendChild(commentsList); File file = new File("/tmp/aren_export_" + System.currentTimeMillis() + ".odt"); + + File directory = new File("/tmp"); + if (! directory.exists()){ + directory.mkdir(); + } + + file.createNewFile(); this.outputDocument.save(file); return file; }