File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public function __construct(
2424 private IUserSession $ userSession ,
2525 ) {
2626 parent ::__construct ($ principalBackend , $ principalPrefix );
27+ $ this ->disableListing = true ;
2728 }
2829
2930 /**
Original file line number Diff line number Diff line change 1414use OCP \Files \NotFoundException ;
1515use OCP \IUserSession ;
1616use Sabre \DAV \Exception \Forbidden ;
17+ use Sabre \DAV \Exception \MethodNotAllowed ;
1718use Sabre \DAV \Exception \NotFound ;
1819use Sabre \DAV \ICollection ;
1920
@@ -44,9 +45,7 @@ public function getChild($name): UploadFolder {
4445 }
4546
4647 public function getChildren (): array {
47- return array_map (function ($ node ) {
48- return new UploadFolder ($ node , $ this ->cleanupService , $ this ->getStorage ());
49- }, $ this ->impl ()->getChildren ());
48+ throw new MethodNotAllowed ('Listing members of this collection is disabled ' );
5049 }
5150
5251 public function childExists ($ name ): bool {
You can’t perform that action at this time.
0 commit comments