diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-11-24 11:20:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-24 11:20:12 +0100 |
commit | 99f600270e102706012361c5605629330ad521e6 (patch) | |
tree | af1284dd3e773c43ae1a0b1cc54c99322065603e | |
parent | 9d6496a99924ec9689255db80f54a1d0134fd952 (diff) | |
parent | a632ce35f5eae4904dd540137efbfcb9ecbd44c9 (diff) | |
download | nextcloud-server-99f600270e102706012361c5605629330ad521e6.tar.gz nextcloud-server-99f600270e102706012361c5605629330ad521e6.zip |
Merge pull request #29864 from nextcloud/bugfix/noid/dav-propfind-ctime
Allow to fetch the creation time of folders
-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(); }); |