summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/app.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 6efc9f46acde..eff4d04f7f9a 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -185,11 +185,16 @@ void removeTree(OUString const & url) {
} else {
if (osl::File::remove(stat.getFileURL()) != osl::FileBase::E_None) {
throw css::uno::RuntimeException(
- "cannot remove " + stat.getFileURL(),
+ "cannot remove file " + stat.getFileURL(),
css::uno::Reference< css::uno::XInterface >());
}
}
}
+ if (osl::Directory::remove(url) != osl::FileBase::E_None) {
+ throw css::uno::RuntimeException(
+ "cannot remove directory " + url,
+ css::uno::Reference< css::uno::XInterface >());
+ }
}
// Remove any existing UserInstallation's user/extensions/bundled cache