aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2021-11-01 11:25:21 +0100
committerGitHub <noreply@github.com>2021-11-01 11:25:21 +0100
commite1bf5c1cd37f29281ab775795b8af0edbb3fc11f (patch)
tree7e06789760ab95bf4de655e8df21bcbfc011fa41 /lib/private/Files
parentbad805d0c21d4ad326a554a7d214c77391f8e76b (diff)
parentfd5e11a81abcc46605dac2d26f7374d34e08a152 (diff)
downloadnextcloud-server-e1bf5c1cd37f29281ab775795b8af0edbb3fc11f.tar.gz
nextcloud-server-e1bf5c1cd37f29281ab775795b8af0edbb3fc11f.zip
Merge pull request #27378 from nextcloud/dav-recalc-checksum
Diffstat (limited to 'lib/private/Files')
-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;
}
/**