From 2035a179bc319cf3f339e90e14dc01c7a980bc78 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 29 Jan 2016 21:50:48 +0100 Subject: Add store/retrieve checksums * Add extra db column to filecache * Bump version * Update filecache code to actually handle checksum * Webdav code to store/retrieve checksums --- lib/private/files/node/file.php | 7 +++++++ lib/private/files/node/node.php | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'lib/private/files/node') diff --git a/lib/private/files/node/file.php b/lib/private/files/node/file.php index c3d18cdb358..cf163b9b763 100644 --- a/lib/private/files/node/file.php +++ b/lib/private/files/node/file.php @@ -164,4 +164,11 @@ class File extends Node implements \OCP\Files\File { public function hash($type, $raw = false) { return $this->view->hash($type, $this->path, $raw); } + + /** + * @inheritdoc + */ + public function getChecksum() { + return $this->fileInfo->getChecksum(); + } } diff --git a/lib/private/files/node/node.php b/lib/private/files/node/node.php index 7769f15ee59..9feccac50bc 100644 --- a/lib/private/files/node/node.php +++ b/lib/private/files/node/node.php @@ -351,4 +351,8 @@ class Node implements \OCP\Files\Node { public function getOwner() { return $this->getFileInfo()->getOwner(); } + + public function getChecksum() { + return; + } } -- cgit v1.2.3