mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #36441 from nextcloud/backport/36433/stable24
[stable24] fix(encryption): don't throw on missing file
This commit is contained in:
commit
4d0a68eca1
1 changed files with 1 additions and 4 deletions
|
|
@ -817,16 +817,13 @@ class Encryption extends Wrapper {
|
|||
$source = $sourceStorage->fopen($sourceInternalPath, 'r');
|
||||
$target = $this->fopen($targetInternalPath, 'w');
|
||||
[, $result] = \OC_Helper::streamCopy($source, $target);
|
||||
fclose($source);
|
||||
fclose($target);
|
||||
} catch (\Exception $e) {
|
||||
} finally {
|
||||
if (is_resource($source)) {
|
||||
fclose($source);
|
||||
}
|
||||
if (is_resource($target)) {
|
||||
fclose($target);
|
||||
}
|
||||
throw $e;
|
||||
}
|
||||
if ($result) {
|
||||
if ($preserveMtime) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue