Skip to content
Snippets Groups Projects
Commit 13904a7f authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #15179 from owncloud/trash-recreatetrashfolderafterfulldelete

Recreate trashbin folder after full deletion
parents e188f0e4 f8f54394
Branches
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment