Resolve debate export problem

This commit is contained in:
ArenMg 2021-05-23 01:13:39 +03:00
parent 1ce12f653e
commit eba6a08a96

View file

@ -104,6 +104,13 @@ public class ODFService {
row.appendChild(commentsList); row.appendChild(commentsList);
File file = new File("/tmp/aren_export_" + System.currentTimeMillis() + ".odt"); 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); this.outputDocument.save(file);
return file; return file;
} }