File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,9 @@ public function getMounts(): \Generator {
126126 $ qb = $ this ->db ->getQueryBuilder ();
127127 $ qb ->selectDistinct (['root_id ' , 'storage_id ' , 'mount_provider_class ' ]) // to avoid scanning each occurrence of a groupfolder
128128 ->from ('mounts ' )
129- ->where ($ qb ->expr ()->in ('mount_provider_class ' , $ qb ->createPositionalParameter (self ::ALLOWED_MOUNT_TYPES , IQueryBuilder::PARAM_STR_ARRAY )));
129+ ->where ($ qb ->expr ()->in ('mount_provider_class ' , $ qb ->createPositionalParameter (self ::ALLOWED_MOUNT_TYPES , IQueryBuilder::PARAM_STR_ARRAY )))
130+ // Exclude groupfolder trashbin mounts
131+ ->andWhere ($ qb ->expr ()->notLike ('mount_point ' , $ qb ->createPositionalParameter ('/%/files_trashbin/% ' )));
130132 $ result = $ qb ->executeQuery ();
131133
132134
You can’t perform that action at this time.
0 commit comments