Merge pull request #44508 from nextcloud/backport/39367/stable27

[stable27] handle more exceptions in AmazonS3::fopen
This commit is contained in:
Robin Appelman 2024-04-03 13:33:32 +02:00 committed by GitHub
commit f85ce2d803
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -219,7 +219,9 @@ class SeekableHttpStream implements File {
public function stream_stat() {
if ($this->getCurrent()) {
$stat = fstat($this->getCurrent());
$stat['size'] = $this->totalSize;
if ($stat) {
$stat['size'] = $this->totalSize;
}
return $stat;
} else {
return false;