Skip to content

Commit

Permalink
fix(files): Fix ownership transfer encrypted files detection
Browse files Browse the repository at this point in the history
Discovered by psalm update

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc authored and backportbot[bot] committed Apr 30, 2024
1 parent 3750072 commit 2297169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/lib/Service/OwnershipTransferService.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ protected function analyse(string $sourceUid,

$encryptedFiles = [];
$this->walkFiles($view, $sourcePath,
function (FileInfo $fileInfo) use ($progress) {
function (FileInfo $fileInfo) use ($progress, &$encryptedFiles) {
if ($fileInfo->getType() === FileInfo::TYPE_FOLDER) {
// only analyze into folders from main storage,
if (!$fileInfo->getStorage()->instanceOfStorage(IHomeStorage::class)) {
Expand Down

0 comments on commit 2297169

Please sign in to comment.