/** {@inheritdoc} */ public function stat($path) { $this->checkAvailability(); try { return parent::stat($path); } catch (\OCP\Files\StorageNotAvailableException $e) { $this->setAvailability(false); throw $e; } }