Skip to content

Commit 935dbfb

Browse files
committed
Moving between storages is not a rename
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent d4d33e3 commit 935dbfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Files/Storage/Wrapper/Encryption.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ public function moveFromStorage(Storage\IStorage $sourceStorage, $sourceInternal
624624
return false;
625625
}
626626

627-
$result = $this->copyBetweenStorage($sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime, true);
627+
$result = $this->copyBetweenStorage($sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime, false);
628628
if ($result) {
629629
if ($sourceStorage->is_dir($sourceInternalPath)) {
630630
$result &= $sourceStorage->rmdir($sourceInternalPath);
@@ -1022,7 +1022,7 @@ protected function shouldEncrypt($path) {
10221022
}
10231023

10241024
try {
1025-
$encryptionModule = $this->getEncryptionModule($fullPath);
1025+
$encryptionModule = $this->getEncryptionModule($path);
10261026
} catch (ModuleDoesNotExistsException $e) {
10271027
return false;
10281028
}

0 commit comments

Comments
 (0)