wsd/ClientSession.cpp | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit a0f83bd9b915ef3ea6dbdb9ed5ef39ead548276e
Author: Michael Meeks <[email protected]>
AuthorDate: Thu Nov 8 02:35:44 2018 +0000
Commit: Michael Meeks <[email protected]>
CommitDate: Thu Nov 8 02:36:08 2018 +0000
Convert-to - cleanup after ourselves.
Change-Id: I85de9721ac1b33d053b59fc36fc7c307206a0888
diff --git a/wsd/ClientSession.cpp b/wsd/ClientSession.cpp
index 762b5a907..9101c7237 100644
--- a/wsd/ClientSession.cpp
+++ b/wsd/ClientSession.cpp
@@ -854,6 +854,11 @@ bool ClientSession::handleKitToClientMessage(const char*
buffer, const int lengt
// Now terminate.
docBroker->stop("Finished saveas handler.");
+
+ // Remove file and directory
+ Poco::Path path = docBroker->getDocKey();
+ Poco::File(path).remove();
+ Poco::File(path.makeParent()).remove();
}
return true;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits