Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
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;
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;