]> source.dussan.org Git - nextcloud-server.git/commitdiff
Test on storage 2109/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 14 Nov 2016 16:21:24 +0000 (17:21 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 15 Nov 2016 08:53:43 +0000 (09:53 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/files/lib/Command/TransferOwnership.php

index 13cbe62ff6f15a2bea8a5f577fbcf776877ade2c..378654d5bf8f8624d61d8c6d8be1819acd5937fa 100644 (file)
@@ -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;