mirror of https://github.com/nextcloud/server
fix(files): Fix ownership transfer encrypted files detection
Discovered by psalm update Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
3750072975
commit
229716939e
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue