diff options
author | Robin Appelman <robin@icewind.nl> | 2023-05-09 17:10:57 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2023-09-04 18:42:47 +0200 |
commit | 0232eec2cf5fc7bf678b7cf7748709a46765ef9f (patch) | |
tree | b6e54f4d80491a432525ea72be1265efd8ad9eab | |
parent | e54724728159e96e7f2c24d77a5a22d081f80aac (diff) | |
download | nextcloud-server-0232eec2cf5fc7bf678b7cf7748709a46765ef9f.tar.gz nextcloud-server-0232eec2cf5fc7bf678b7cf7748709a46765ef9f.zip |
allow passing more info to lazy folder
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | lib/private/Files/Node/LazyFolder.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/private/Files/Node/LazyFolder.php b/lib/private/Files/Node/LazyFolder.php index d495d6f4c57..c307b55b5bc 100644 --- a/lib/private/Files/Node/LazyFolder.php +++ b/lib/private/Files/Node/LazyFolder.php @@ -207,6 +207,9 @@ class LazyFolder implements Folder { * @inheritDoc */ public function getId() { + if (isset($this->data['fileid'])) { + return $this->data['fileid']; + } return $this->__call(__FUNCTION__, func_get_args()); } @@ -221,6 +224,9 @@ class LazyFolder implements Folder { * @inheritDoc */ public function getMTime() { + if (isset($this->data['mtime'])) { + return $this->data['mtime']; + } return $this->__call(__FUNCTION__, func_get_args()); } @@ -228,6 +234,9 @@ class LazyFolder implements Folder { * @inheritDoc */ public function getSize($includeMounts = true): int|float { + if (isset($this->data['size'])) { + return $this->data['size']; + } return $this->__call(__FUNCTION__, func_get_args()); } @@ -235,6 +244,9 @@ class LazyFolder implements Folder { * @inheritDoc */ public function getEtag() { + if (isset($this->data['etag'])) { + return $this->data['etag']; + } return $this->__call(__FUNCTION__, func_get_args()); } @@ -299,6 +311,12 @@ class LazyFolder implements Folder { * @inheritDoc */ public function getName() { + if (isset($this->data['path'])) { + return basename($this->data['path']); + } + if (isset($this->data['name'])) { + return $this->data['name']; + } return $this->__call(__FUNCTION__, func_get_args()); } |