summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-03-24 23:02:14 +0100
committerVincent Petry <pvince81@owncloud.com>2015-03-24 23:02:14 +0100
commitf8f543945f648a2ae2e5317393f787efe41e5c69 (patch)
tree5095e954dd8aa913442412b6f448fd3b83d35f5e /apps/files_trashbin
parentcc2092a511c3d09ac2e0eb0d4bf75a58f6f4366b (diff)
downloadnextcloud-server-f8f543945f648a2ae2e5317393f787efe41e5c69.tar.gz
nextcloud-server-f8f543945f648a2ae2e5317393f787efe41e5c69.zip
Recreate trashbin folder after full deletion
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/trashbin.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php
index 6a7636a46f2..b2a3478f6fa 100644
--- a/apps/files_trashbin/lib/trashbin.php
+++ b/apps/files_trashbin/lib/trashbin.php
@@ -508,6 +508,8 @@ class Trashbin {
$view->deleteAll('files_trashbin');
$query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trash` WHERE `user`=?');
$query->execute(array($user));
+ $view->mkdir('files_trashbin');
+ $view->mkdir('files_trashbin/files');
return true;
}