mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
skip files that cant be opened for FixEncryptedVersion
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
c2cb790532
commit
06b2ed2641
1 changed files with 5 additions and 0 deletions
|
|
@ -174,6 +174,11 @@ class FixEncryptedVersion extends Command {
|
|||
*/
|
||||
$handle = $this->view->fopen($path, 'rb');
|
||||
|
||||
if ($handle === false) {
|
||||
$output->writeln("<warning>Failed to open file: \"$path\" skipping</warning>");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (\fread($handle, 9001) !== false) {
|
||||
$fileInfo = $this->view->getFileInfo($path);
|
||||
if (!$fileInfo) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue