add preDelete hook for files_trashbin app

This commit is contained in:
Georg Ehrke 2014-03-11 14:10:12 +01:00
parent c1cb9ee9b0
commit 0f864c38bb

View file

@ -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));