diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-11-24 13:20:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 13:20:12 +0300 |
commit | 99f600270e102706012361c5605629330ad521e6 (patch) | |
tree | af1284dd3e773c43ae1a0b1cc54c99322065603e /apps/dav/lib/Connector/Sabre | |
parent | 9d6496a99924ec9689255db80f54a1d0134fd952 (diff) | |
parent | a632ce35f5eae4904dd540137efbfcb9ecbd44c9 (diff) |
Merge pull request #29864 from nextcloud/bugfix/noid/dav-propfind-ctime
Allow to fetch the creation time of folders
Diffstat (limited to 'apps/dav/lib/Connector/Sabre')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/FilesPlugin.php | 9 |
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(); }); |