diff options
-rw-r--r-- | lib/private/files/node/file.php | 2 | ||||
-rw-r--r-- | lib/public/files/file.php | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lib/private/files/node/file.php b/lib/private/files/node/file.php index cf163b9b763..f8279c00b8c 100644 --- a/lib/private/files/node/file.php +++ b/lib/private/files/node/file.php @@ -169,6 +169,6 @@ class File extends Node implements \OCP\Files\File { * @inheritdoc */ public function getChecksum() { - return $this->fileInfo->getChecksum(); + return $this->getFileInfo()->getChecksum(); } } diff --git a/lib/public/files/file.php b/lib/public/files/file.php index 3acf24b9277..1550f92682b 100644 --- a/lib/public/files/file.php +++ b/lib/public/files/file.php @@ -84,4 +84,14 @@ interface File extends Node { * @since 6.0.0 */ public function hash($type, $raw = false); + + /** + * Get the stored checksum for this file + * + * @return string + * @since 9.0.0 + * @throws InvalidPathException + * @throws NotFoundException + */ + public function getChecksum(); } |