Skip to content

Commit

Permalink
Moving between storages is not a rename
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer committed Jan 21, 2021
1 parent d4d33e3 commit 935dbfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/Storage/Wrapper/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ public function moveFromStorage(Storage\IStorage $sourceStorage, $sourceInternal
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);
Expand Down Expand Up @@ -1022,7 +1022,7 @@ protected function shouldEncrypt($path) {
}

try {
$encryptionModule = $this->getEncryptionModule($fullPath);
$encryptionModule = $this->getEncryptionModule($path);
} catch (ModuleDoesNotExistsException $e) {
return false;
}
Expand Down

0 comments on commit 935dbfb

Please sign in to comment.