apps/files_sharing/lib/Helper.php 1 location
|
@@ 233-236 (lines=4) @@
|
| 230 |
|
$name = $pathinfo['filename']; |
| 231 |
|
$dir = $pathinfo['dirname']; |
| 232 |
|
$i = 2; |
| 233 |
|
while ($view->file_exists($path) || in_array($path, $excludeList)) { |
| 234 |
|
$path = Filesystem::normalizePath($dir . '/' . $name . ' ('.$i.')' . $ext); |
| 235 |
|
$i++; |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
return $path; |
| 239 |
|
} |
apps/files_sharing/lib/SharedMount.php 1 location
|
@@ 148-151 (lines=4) @@
|
| 145 |
|
}; |
| 146 |
|
|
| 147 |
|
$i = 2; |
| 148 |
|
while ($view->file_exists($path) || $mountpointExists($path)) { |
| 149 |
|
$path = Filesystem::normalizePath($dir . '/' . $name . ' ('.$i.')' . $ext); |
| 150 |
|
$i++; |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
return $path; |
| 154 |
|
} |