-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[poc] remove recursive parse on shareinfo #33916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| } | ||
|
|
||
| private function parseNode(Node $node, int $permissionMask) { | ||
| private function parseNode(Node $node, int $permissionMask, bool $recursive = true) { |
Check notice
Code scanning / Psalm
MissingReturnType
| } | ||
| return $this->parseFolder($node, $permissionMask); | ||
|
|
||
| return $this->parseFolder($node, $permissionMask, $recursive); |
Check notice
Code scanning / Psalm
ArgumentTypeCoercion
| } | ||
|
|
||
| private function parseFolder(Folder $folder, int $permissionMask) { | ||
| private function parseFolder(Folder $folder, int $permissionMask, bool $recursive = true) { |
Check notice
Code scanning / Psalm
MissingReturnType
| try { | ||
| $new = $node; | ||
| foreach (explode('/', $subPath) as $subFolder) { | ||
| $new = $new->get($subFolder); |
Check notice
Code scanning / Psalm
PossiblyUndefinedMethod
|
In general I'm hesitant to patch up the ShareInfo since we no longer use it ourselves with #32852 |
Signed-off-by: Maxence Lange <[email protected]>
3fd8249 to
f55a613
Compare
This is just a concept that will avoid recurvise parsing of all folder/files of a share by link (
/shareinfo)will returns
hasChildrenif more sub folder are available, but not parsed.A second request include
&startAt=<sub_folder_idwill returns info about this sub foler within the share.