Merge pull request #45105 from nextcloud/backport/fix-ownership-transfer-encryption

[stable29] fix(files): Fix ownership transfer encrypted files detection
This commit is contained in:
Côme Chilliet 2024-04-30 11:49:57 +02:00 committed by GitHub
commit d8c0da5636
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -244,7 +244,7 @@ class OwnershipTransferService {
$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)) {