aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/node/folder.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-12-01 13:22:58 +0100
committerRobin Appelman <icewind@owncloud.com>2015-12-01 13:22:58 +0100
commit0d63e95a5d05b4f357c0725c8476bbd0b056712b (patch)
treec49907896a323ec55b1c34f7aebd682fd8c829af /lib/private/files/node/folder.php
parent36660734a62b0f388b4d1dcc70f1bfaae620bf28 (diff)
downloadnextcloud-server-0d63e95a5d05b4f357c0725c8476bbd0b056712b.tar.gz
nextcloud-server-0d63e95a5d05b4f357c0725c8476bbd0b056712b.zip
Add metadata to post delete hooks
Diffstat (limited to 'lib/private/files/node/folder.php')
-rw-r--r--lib/private/files/node/folder.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/files/node/folder.php b/lib/private/files/node/folder.php
index 9032c2bfb9d..be76b70b2ce 100644
--- a/lib/private/files/node/folder.php
+++ b/lib/private/files/node/folder.php
@@ -295,8 +295,9 @@ class Folder extends Node implements \OCP\Files\Folder {
public function delete() {
if ($this->checkPermissions(\OCP\Constants::PERMISSION_DELETE)) {
$this->sendHooks(array('preDelete'));
+ $fileInfo = $this->getFileInfo();
$this->view->rmdir($this->path);
- $nonExisting = new NonExistingFolder($this->root, $this->view, $this->path);
+ $nonExisting = new NonExistingFolder($this->root, $this->view, $this->path, $fileInfo);
$this->root->emit('\OC\Files', 'postDelete', array($nonExisting));
$this->exists = false;
} else {