diff options
author | Robin Appelman <robin@icewind.nl> | 2022-03-24 17:09:52 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-03-24 17:36:59 +0100 |
commit | 1179873f33cebcd2132aa5f51da952412830b94e (patch) | |
tree | a9dd19c9e1a86043f553faf671476faf1535d42b /lib | |
parent | db2418be85cab5eb0ec8f2ad00f821e79380526b (diff) | |
download | nextcloud-server-1179873f33cebcd2132aa5f51da952412830b94e.tar.gz nextcloud-server-1179873f33cebcd2132aa5f51da952412830b94e.zip |
add comment for getMountForPath loop
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Config/UserMountCache.php | 2 |
1 files changed, 2 insertions, 0 deletions
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])) { |