From d1d154128b3ff0ca9b16f3790be319d7fbfa45bd Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 21 Jan 2021 11:35:54 +0100 Subject: [PATCH] Moving between storages is not a rename Signed-off-by: Roeland Jago Douma --- lib/private/Files/Storage/Wrapper/Encryption.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Storage/Wrapper/Encryption.php b/lib/private/Files/Storage/Wrapper/Encryption.php index ef44be5cef..0858366ffb 100644 --- a/lib/private/Files/Storage/Wrapper/Encryption.php +++ b/lib/private/Files/Storage/Wrapper/Encryption.php @@ -624,7 +624,7 @@ class Encryption extends Wrapper { return false; } - $result = $this->copyBetweenStorage($sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime, true); + $result = $this->copyBetweenStorage($sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime, false); if ($result) { if ($sourceStorage->is_dir($sourceInternalPath)) { $result &= $sourceStorage->rmdir($sourceInternalPath);