From bc4f10ad838ee2c91161b0e678ed5604de1d9364 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 16 Aug 2018 21:27:02 +0200 Subject: more efficient way to detect added and removed mounts Signed-off-by: Robin Appelman --- apps/files_sharing/lib/SharedMount.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'apps/files_sharing/lib') diff --git a/apps/files_sharing/lib/SharedMount.php b/apps/files_sharing/lib/SharedMount.php index 3dab99115ba..40553ef397a 100644 --- a/apps/files_sharing/lib/SharedMount.php +++ b/apps/files_sharing/lib/SharedMount.php @@ -140,11 +140,7 @@ class SharedMount extends MountPoint implements MoveableMount { while ($view->file_exists($path) || isset($mountpoints[$absolutePath])) { $path = Filesystem::normalizePath($dir . '/' . $name . ' (' . $i . ')' . $ext); $absolutePath = $this->recipientView->getAbsolutePath($path) . '/'; - var_dump($absolutePath); $i++; - if ($i > 10) { - return $path; - } } return $path; -- cgit v1.2.3