diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index b849a69246f5e..3d3937b44b7c7 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -250,6 +250,7 @@ protected function propfind(string $path): array|false { // we either don't know it, or we know it exists but need more details if (is_null($cachedResponse) || $cachedResponse === true) { $this->init(); + $response = false; try { $response = $this->client->propFind( $this->encodePath($path), @@ -260,9 +261,9 @@ protected function propfind(string $path): array|false { if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) { $this->statCache->clear($path . '/'); $this->statCache->set($path, false); - return false; + } else { + $this->convertException($e, $path); } - $this->convertException($e, $path); } catch (\Exception $e) { $this->convertException($e, $path); }