diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-03-24 23:02:14 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-03-24 23:02:14 +0100 |
commit | f8f543945f648a2ae2e5317393f787efe41e5c69 (patch) | |
tree | 5095e954dd8aa913442412b6f448fd3b83d35f5e /apps/files_trashbin | |
parent | cc2092a511c3d09ac2e0eb0d4bf75a58f6f4366b (diff) | |
download | nextcloud-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.php | 2 |
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; } |