diff options
author | Robin Appelman <robin@icewind.nl> | 2018-08-16 19:56:49 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-08-27 16:25:42 +0200 |
commit | c897e2af8e43f37dda08d99a1a3460b6aa90da67 (patch) | |
tree | b1f347620aa9868aeb808b9a2d931c48d2cd18b2 /apps | |
parent | f2152ecda9536659b0149fab4811f366b4cd7c37 (diff) | |
download | nextcloud-server-c897e2af8e43f37dda08d99a1a3460b6aa90da67.tar.gz nextcloud-server-c897e2af8e43f37dda08d99a1a3460b6aa90da67.zip |
more efficient way to detect added and removed mounts
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/SharedMount.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/files_sharing/lib/SharedMount.php b/apps/files_sharing/lib/SharedMount.php index ba3efaf3f87..bf274f2c2f6 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; |