summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2020-01-20 15:23:06 +0100
committerTomaž Vajngerl <quikee@gmail.com>2020-08-19 09:05:47 +0200
commit8d162eb24d7a442357fee8c61dfbec2f3484c128 (patch)
tree145a915449e414e856a960e0b3a660103c42992d /unotools
parent021d17006c970bbd784bc3a5474d56fff02fdca0 (diff)
Make TempFile destructor remove temp directory recursively
Change-Id: Idcfa93ffe86112477ad81bcbf74b8e5b858423f2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87080 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> (cherry picked from commit 4a25fb867f7cc0a0fc21c4079c84fadec6647ad1) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100880 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/ucbhelper/tempfile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index 128a1f26597c..dfad33dbe5e4 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -29,6 +29,7 @@
#include <osl/file.hxx>
#include <tools/time.hxx>
#include <tools/debug.hxx>
+#include <comphelper/DirectoryHelper.hxx>
#ifdef UNX
#include <unistd.h>
@@ -386,8 +387,7 @@ TempFile::~TempFile()
{
if ( bIsDirectory )
{
- // at the moment no recursiv algorithm present
- Directory::remove( aName );
+ comphelper::DirectoryHelper::deleteDirRecursively(aName);
}
else
{