add comment for getMountForPath loop

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/31265/head
Robin Appelman 2022-03-24 17:09:52 +07:00
parent db2418be85
commit 1179873f33
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 2 additions and 0 deletions

@ -460,6 +460,8 @@ class UserMountCache implements IUserMountCache {
$mounts = array_combine($mountPoints, $mounts);
$current = $path;
// walk up the directory tree until we find a path that has a mountpoint set
// the loop will return if a mountpoint is found or break if none are found
while (true) {
$mountPoint = $current . '/';
if (isset($mounts[$mountPoint])) {