diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php index a03324853ebe..e0688a345a60 100644 --- a/apps/files_external/lib/Lib/Storage/SMB.php +++ b/apps/files_external/lib/Lib/Storage/SMB.php @@ -286,7 +286,12 @@ private function removeFromCache($path) { */ public function stat($path) { $this->log('enter: '.__FUNCTION__."($path)"); - $result = $this->formatInfo($this->getFileInfo($path)); + try { + $result = $this->formatInfo($this->getFileInfo($path)); + } catch (NotFoundException $e) { + $this->swallow(__FUNCTION__, $e); + $result = false; + } return $this->leave(__FUNCTION__, $result); }