Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2022-03-24 19:09:52 +0300
committerRobin Appelman <robin@icewind.nl>2022-03-24 19:36:59 +0300
commit1179873f33cebcd2132aa5f51da952412830b94e (patch)
treea9dd19c9e1a86043f553faf671476faf1535d42b /lib
parentdb2418be85cab5eb0ec8f2ad00f821e79380526b (diff)
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.php2
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])) {