Merge pull request #7668 from owncloud/trashbin_predelete
add preDelete hook for files_trashbin app
This commit is contained in:
commit
881739cbac
|
@ -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 New Issue