diff options
author | Robin Appelman <robin@icewind.nl> | 2019-10-29 13:49:41 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-11-13 12:39:32 +0100 |
commit | 1b6e647b633d62dff9f37c0449538d4c382210f8 (patch) | |
tree | 187bd9f192e9ead23027dfedb71295b308d3882a /lib/private/Files/Node | |
parent | 842da3f18364c50ca907f4ac984ded1ecafd35fe (diff) | |
download | nextcloud-server-1b6e647b633d62dff9f37c0449538d4c382210f8.tar.gz nextcloud-server-1b6e647b633d62dff9f37c0449538d4c382210f8.zip |
expose filecache extension data in FileInfo
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Node')
-rw-r--r-- | lib/private/Files/Node/LazyRoot.php | 21 | ||||
-rw-r--r-- | lib/private/Files/Node/Node.php | 12 |
2 files changed, 33 insertions, 0 deletions
diff --git a/lib/private/Files/Node/LazyRoot.php b/lib/private/Files/Node/LazyRoot.php index 01b4ca52765..3e54d1254ad 100644 --- a/lib/private/Files/Node/LazyRoot.php +++ b/lib/private/Files/Node/LazyRoot.php @@ -480,4 +480,25 @@ class LazyRoot implements IRootFolder { public function getRecent($limit, $offset = 0) { return $this->__call(__FUNCTION__, func_get_args()); } + + /** + * @inheritDoc + */ + public function getMetadataEtag(): ?string { + return $this->__call(__FUNCTION__, func_get_args()); + } + + /** + * @inheritDoc + */ + public function getCreationTime(): int { + return $this->__call(__FUNCTION__, func_get_args()); + } + + /** + * @inheritDoc + */ + public function getUploadTime(): int { + return $this->__call(__FUNCTION__, func_get_args()); + } } diff --git a/lib/private/Files/Node/Node.php b/lib/private/Files/Node/Node.php index c440dd4a8f1..dcf5efa62d3 100644 --- a/lib/private/Files/Node/Node.php +++ b/lib/private/Files/Node/Node.php @@ -444,4 +444,16 @@ class Node implements \OCP\Files\Node { } } + public function getMetadataEtag(): ?string { + return $this->getFileInfo()->getMetadataEtag(); + } + + public function getCreationTime(): int { + return $this->getFileInfo()->getCreationTime(); + } + + public function getUploadTime(): int { + return $this->getFileInfo()->getUploadTime(); + } + } |