Merge pull request #15179 from owncloud/trash-recreatetrashfolderafterfulldelete
Recreate trashbin folder after full deletion
This commit is contained in:
commit
13904a7f89
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue