diff --git a/lib/Service/WorkspaceService.php b/lib/Service/WorkspaceService.php index 8bec036a202..d899e494182 100644 --- a/lib/Service/WorkspaceService.php +++ b/lib/Service/WorkspaceService.php @@ -30,7 +30,10 @@ public function __construct(IL10N $l10n) { public function getFile(Folder $folder): ?File { foreach ($this->getSupportedFilenames() as $filename) { try { - $file = $folder->get($filename); + $exists = $folder->getStorage()->getCache('')->get($filename); + if ($exists) { + $file = $folder->get($filename); + } if ($file instanceof File) { return $file; }