diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index 52ed890056..c4ebb0a44d 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -268,7 +268,7 @@ class DAV extends Common { ); $this->statCache->set($path, $response); } catch (ClientHttpException $e) { - if ($e->getHttpStatus() === 404) { + if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) { $this->statCache->clear($path . '/'); $this->statCache->set($path, false); return false;