aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/node/nonexistingfolder.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/nonexistingfolder.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/nonexistingfolder.php')
-rw-r--r--lib/private/files/node/nonexistingfolder.php60
1 files changed, 50 insertions, 10 deletions
diff --git a/lib/private/files/node/nonexistingfolder.php b/lib/private/files/node/nonexistingfolder.php
index be58103da90..5044eb524f5 100644
--- a/lib/private/files/node/nonexistingfolder.php
+++ b/lib/private/files/node/nonexistingfolder.php
@@ -47,7 +47,11 @@ class NonExistingFolder extends Folder {
}
public function getId() {
- throw new NotFoundException();
+ if ($this->fileInfo) {
+ return parent::getId();
+ } else {
+ throw new NotFoundException();
+ }
}
public function stat() {
@@ -55,35 +59,67 @@ class NonExistingFolder extends Folder {
}
public function getMTime() {
- throw new NotFoundException();
+ if ($this->fileInfo) {
+ return parent::getMTime();
+ } else {
+ throw new NotFoundException();
+ }
}
public function getSize() {
- throw new NotFoundException();
+ if ($this->fileInfo) {
+ return parent::getSize();
+ } else {
+ throw new NotFoundException();
+ }
}
public function getEtag() {
- throw new NotFoundException();
+ if ($this->fileInfo) {
+ return parent::getEtag();
+ } else {
+ throw new NotFoundException();
+ }
}
public function getPermissions() {
- throw new NotFoundException();
+ if ($this->fileInfo) {
+ return parent::getPermissions();
+ } else {
+ throw new NotFoundException();
+ }
}
public function isReadable() {
- throw new NotFoundException();
+ if ($this->fileInfo) {
+ return parent::isReadable();
+ } else {
+ throw new NotFoundException();
+ }
}
public function isUpdateable() {
- throw new NotFoundException();
+ if ($this->fileInfo) {
+ return parent::isUpdateable();
+ } else {
+ throw new NotFoundException();
+ }
}
public function isDeletable() {
- throw new NotFoundException();
+ if ($this->fileInfo) {
+ return parent::isDeletable();
+ } else {
+ throw new NotFoundException();
+ }
}
public function isShareable() {
- throw new NotFoundException();
+ if ($this->fileInfo) {
+ return parent::isShareable();
+ } else {
+ throw new NotFoundException();
+ }
}
public function get($path) {
@@ -127,6 +163,10 @@ class NonExistingFolder extends Folder {
}
public function isCreatable() {
- throw new NotFoundException();
+ if ($this->fileInfo) {
+ return parent::isCreatable();
+ } else {
+ throw new NotFoundException();
+ }
}
}