summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files/lib/Command/TransferOwnership.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/lib/Command/TransferOwnership.php b/apps/files/lib/Command/TransferOwnership.php
index 3b51e4a9e6d..13cbe62ff6f 100644
--- a/apps/files/lib/Command/TransferOwnership.php
+++ b/apps/files/lib/Command/TransferOwnership.php
@@ -157,6 +157,11 @@ class TransferOwnership extends Command {
$this->walkFiles($view, "$this->sourceUser/files",
function (FileInfo $fileInfo) use ($progress, $self) {
if ($fileInfo->getType() === FileInfo::TYPE_FOLDER) {
+ // only analyze into folders from main storage,
+ // sub-storages have an empty internal path
+ if ($fileInfo->getInternalPath() === '' && $fileInfo->getPath() !== '') {
+ return false;
+ }
return true;
}
$progress->advance();