Merge pull request #15179 from owncloud/trash-recreatetrashfolderafterfulldelete

Recreate trashbin folder after full deletion
This commit is contained in:
Vincent Petry 2015-03-25 14:58:06 +01:00
commit 13904a7f89
1 changed files with 2 additions and 0 deletions

View File

@ -508,6 +508,8 @@ class Trashbin {
$view->deleteAll('files_trashbin'); $view->deleteAll('files_trashbin');
$query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trash` WHERE `user`=?'); $query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trash` WHERE `user`=?');
$query->execute(array($user)); $query->execute(array($user));
$view->mkdir('files_trashbin');
$view->mkdir('files_trashbin/files');
return true; return true;
} }