Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-11-23 18:55:33 +0300
committerJulius Härtl <jus@bitgrid.net>2021-11-23 18:55:33 +0300
commita632ce35f5eae4904dd540137efbfcb9ecbd44c9 (patch)
tree3be3cee18be621f1fe551c406635a4196d875208 /apps/dav/lib/Connector/Sabre
parent129de6079e53e0ac9dbf9d7c25ec1670ae0ff572 (diff)
Allow to fetch the creation time of folders
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre')
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesPlugin.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php
index 3f2ae0f35ec..156507e4467 100644
--- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php
@@ -391,12 +391,13 @@ class FilesPlugin extends ServerPlugin {
$user->getUID()
);
});
- }
- if ($node instanceof \OCA\DAV\Connector\Sabre\Node) {
$propFind->handle(self::DATA_FINGERPRINT_PROPERTYNAME, function () use ($node) {
return $this->config->getSystemValue('data-fingerprint', '');
});
+ $propFind->handle(self::CREATION_TIME_PROPERTYNAME, function () use ($node) {
+ return $node->getFileInfo()->getCreationTime();
+ });
}
if ($node instanceof \OCA\DAV\Connector\Sabre\File) {
@@ -423,10 +424,6 @@ class FilesPlugin extends ServerPlugin {
return new ChecksumList($checksum);
});
- $propFind->handle(self::CREATION_TIME_PROPERTYNAME, function () use ($node) {
- return $node->getFileInfo()->getCreationTime();
- });
-
$propFind->handle(self::UPLOAD_TIME_PROPERTYNAME, function () use ($node) {
return $node->getFileInfo()->getUploadTime();
});