more efficient way to detect added and removed mounts

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2018-08-16 21:27:02 +02:00
parent c300516e51
commit bc4f10ad83
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
1 changed files with 0 additions and 4 deletions

View File

@ -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;