]> source.dussan.org Git - nextcloud-server.git/commitdiff
add comment for getMountForPath loop
authorRobin Appelman <robin@icewind.nl>
Thu, 24 Mar 2022 16:09:52 +0000 (17:09 +0100)
committerRobin Appelman <robin@icewind.nl>
Thu, 24 Mar 2022 16:36:59 +0000 (17:36 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Files/Config/UserMountCache.php

index 4df8245cef23e3fbb3e8effbe5db46c32769252f..9a5eddc4878cd83b164f60fad33e82ff8b7ced6f 100644 (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])) {