mirror of
https://github.com/nextcloud/server.git
synced 2026-05-23 18:46:30 -04:00
Merge pull request #48103 from nextcloud/backport/46218/stable28
This commit is contained in:
commit
5c507fa934
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue