add preDelete hook for files_trashbin app
This commit is contained in:
parent
c1cb9ee9b0
commit
0f864c38bb
1 changed files with 1 additions and 0 deletions
|
@ -563,6 +563,7 @@ class Trashbin {
|
|||
} else {
|
||||
$size += $view->filesize('/files_trashbin/files/' . $file);
|
||||
}
|
||||
\OC_Hook::emit('\OCP\Trashbin', 'preDelete', array('path' => '/files_trashbin/files/' . $file));
|
||||
$view->unlink('/files_trashbin/files/' . $file);
|
||||
\OC_Hook::emit('\OCP\Trashbin', 'delete', array('path' => '/files_trashbin/files/' . $file));
|
||||
|
||||
|
|
Loading…
Reference in a new issue