mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
add comment for getMountForPath loop
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
db2418be85
commit
1179873f33
1 changed files with 2 additions and 0 deletions
|
|
@ -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])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue