From f8f543945f648a2ae2e5317393f787efe41e5c69 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 24 Mar 2015 23:02:14 +0100 Subject: [PATCH] Recreate trashbin folder after full deletion --- apps/files_trashbin/lib/trashbin.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index 6a7636a46f..b2a3478f6f 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; }