mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(encryption): don't throw on missing file
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
de415fbb15
commit
f0a3b77d0f
1 changed files with 1 additions and 4 deletions
|
|
@ -819,16 +819,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