diff options
author | Robin Appelman <robin@icewind.nl> | 2018-08-16 21:27:02 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2018-08-16 21:27:45 +0200 |
commit | bc4f10ad838ee2c91161b0e678ed5604de1d9364 (patch) | |
tree | 2162225ad0b4d01cefc1cf19a4b998bdbdaa0989 /apps/files_sharing/lib | |
parent | c300516e518fff07276a2e6e221ae903c7fe8b26 (diff) | |
download | nextcloud-server-bc4f10ad838ee2c91161b0e678ed5604de1d9364.tar.gz nextcloud-server-bc4f10ad838ee2c91161b0e678ed5604de1d9364.zip |
more efficient way to detect added and removed mounts
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/lib')
-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 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; |