summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-11-14 17:21:24 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-15 09:53:43 +0100
commit7e6830729e0d38ac22b4e337908d1a53f111f3c9 (patch)
tree3106e5392f54c28ed8965575841bf43f825ebfca /apps/files/lib
parentf31b794addd85f1d41a0ab112e824ece7f7ca009 (diff)
downloadnextcloud-server-7e6830729e0d38ac22b4e337908d1a53f111f3c9.tar.gz
nextcloud-server-7e6830729e0d38ac22b4e337908d1a53f111f3c9.zip
Test on storage
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Command/TransferOwnership.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Command/TransferOwnership.php b/apps/files/lib/Command/TransferOwnership.php
index 13cbe62ff6f..378654d5bf8 100644
--- a/apps/files/lib/Command/TransferOwnership.php
+++ b/apps/files/lib/Command/TransferOwnership.php
@@ -27,6 +27,7 @@ namespace OCA\Files\Command;
use OC\Files\Filesystem;
use OC\Files\View;
use OCP\Files\FileInfo;
+use OCP\Files\IHomeStorage;
use OCP\Files\Mount\IMountManager;
use OCP\IUser;
use OCP\IUserManager;
@@ -158,8 +159,7 @@ class TransferOwnership extends Command {
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() !== '') {
+ if (!$fileInfo->getStorage()->instanceOfStorage(IHomeStorage::class)) {
return false;
}
return true;