Merge pull request #48103 from nextcloud/backport/46218/stable28

pull/48124/head
John Molakvoæ 2024-09-17 10:14:14 +07:00 committed by GitHub
commit 5c507fa934
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

@ -435,7 +435,7 @@ class Local extends \OC\Files\Storage\Common {
return $result;
}
public function hash($type, $path, $raw = false) {
public function hash($type, $path, $raw = false): string|false {
return hash_file($type, $this->getSourcePath($path), $raw);
}

@ -334,6 +334,7 @@ class Availability extends Wrapper {
return parent::hash($type, $path, $raw);
} catch (StorageNotAvailableException $e) {
$this->setUnavailable($e);
return false;
}
}