mirror of
https://github.com/ArenMg/aren.git
synced 2024-12-22 06:53:27 +00:00
Resolve debate export problem
This commit is contained in:
parent
1ce12f653e
commit
eba6a08a96
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue