aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/node/nonexistingfolder.php
diff options
context:
space:
mode:
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();
+ }
}
}