Merge pull request #44283 from nextcloud/backport/44279/stable26

This commit is contained in:
Benjamin Gaussorgues 2024-03-21 20:04:03 +01:00 committed by GitHub
commit d1d4ecfdc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1514,6 +1514,13 @@ class View {
//add a folder for any mountpoint in this directory and add the sizes of other mountpoints to the folders
$mounts = Filesystem::getMountManager()->findIn($path);
// make sure nested mounts are sorted after their parent mounts
// otherwise doesn't propagate the etag across storage boundaries correctly
usort($mounts, function (IMountPoint $a, IMountPoint $b) {
return $a->getMountPoint() <=> $b->getMountPoint();
});
$dirLength = strlen($path);
foreach ($mounts as $mount) {
$mountPoint = $mount->getMountPoint();