diff --git a/lib/private/Files/Storage/Wrapper/Encryption.php b/lib/private/Files/Storage/Wrapper/Encryption.php index baa2b7f1618e..270b27020674 100644 --- a/lib/private/Files/Storage/Wrapper/Encryption.php +++ b/lib/private/Files/Storage/Wrapper/Encryption.php @@ -782,8 +782,9 @@ private function copyBetweenStorage(Storage $sourceStorage, $sourceInternalPath, } else { try { $source = $sourceStorage->fopen($sourceInternalPath, 'r'); - if ($isRename) { - $this->sourcePath[$targetInternalPath] = $sourceStorage->getFullPath($sourceInternalPath); + if ($isRename && (count($mount) === 1)) { + $sourceStorageMountPoint = $mount[0]->getMountPoint(); + $this->sourcePath[$targetInternalPath] = $sourceStorageMountPoint . '/' . $sourceInternalPath; } else { unset($this->sourcePath[$targetInternalPath]); }