apps/files_sharing/lib/Helper.php 1 location
|
@@ 264-267 (lines=4) @@
|
| 261 |
|
$name = $pathinfo['filename']; |
| 262 |
|
$dir = $pathinfo['dirname']; |
| 263 |
|
$i = 2; |
| 264 |
|
while ($view->file_exists($path) || \in_array($path, $excludeList)) { |
| 265 |
|
$path = Filesystem::normalizePath($dir . '/' . $name . ' ('.$i.')' . $ext); |
| 266 |
|
$i++; |
| 267 |
|
} |
| 268 |
|
|
| 269 |
|
return $path; |
| 270 |
|
} |
apps/files_sharing/lib/SharedMount.php 1 location
|
@@ 145-148 (lines=4) @@
|
| 142 |
|
}; |
| 143 |
|
|
| 144 |
|
$i = 2; |
| 145 |
|
while ($view->file_exists($path) || $mountpointExists($path)) { |
| 146 |
|
$path = Filesystem::normalizePath($dir . '/' . $name . ' ('.$i.')' . $ext); |
| 147 |
|
$i++; |
| 148 |
|
} |
| 149 |
|
|
| 150 |
|
return $path; |
| 151 |
|
} |