From 1179873f33cebcd2132aa5f51da952412830b94e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 24 Mar 2022 17:09:52 +0100 Subject: add comment for getMountForPath loop Signed-off-by: Robin Appelman --- lib/private/Files/Config/UserMountCache.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/private/Files/Config') diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php index 4df8245cef2..9a5eddc4878 100644 --- a/lib/private/Files/Config/UserMountCache.php +++ b/lib/private/Files/Config/UserMountCache.php @@ -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])) { -- cgit v1.2.3