summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-06-04 16:22:39 +0200
committerRobin Appelman <robin@icewind.nl>2021-08-23 15:38:58 +0200
commitfd5e11a81abcc46605dac2d26f7374d34e08a152 (patch)
tree1b680e87671856d7c193096f9bb5bb39234768cb /lib
parenta8547cc0eadb4e92e1730b98424a413f22f76b50 (diff)
downloadnextcloud-server-fd5e11a81abcc46605dac2d26f7374d34e08a152.tar.gz
nextcloud-server-fd5e11a81abcc46605dac2d26f7374d34e08a152.zip
Add dav plugin to trigger recalculating of checksums
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/View.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php
index 113290e2686..cafa6952a62 100644
--- a/lib/private/Files/View.php
+++ b/lib/private/Files/View.php
@@ -1082,7 +1082,7 @@ class View {
* @param string $type
* @param string $path
* @param bool $raw
- * @return bool|null|string
+ * @return bool|string
*/
public function hash($type, $path, $raw = false) {
$postFix = (substr($path, -1) === '/') ? '/' : '';
@@ -1099,12 +1099,13 @@ class View {
[Filesystem::signal_param_path => $this->getHookPath($path)]
);
}
+ /** @var Storage|null $storage */
[$storage, $internalPath] = Filesystem::resolvePath($absolutePath . $postFix);
if ($storage) {
return $storage->hash($type, $internalPath, $raw);
}
}
- return null;
+ return false;
}
/**