add comment for getMountForPath loop

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2022-03-24 17:09:52 +01:00
parent db2418be85
commit 1179873f33
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -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])) {