Test on storage
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
f31b794add
commit
7e6830729e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue