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 |
|
} |
apps/files_sharing/lib/Helper.php 1 location
|
@@ 262-265 (lines=4) @@
|
259 |
|
$name = $pathinfo['filename']; |
260 |
|
$dir = $pathinfo['dirname']; |
261 |
|
$i = 2; |
262 |
|
while ($view->file_exists($path) || \in_array($path, $excludeList)) { |
263 |
|
$path = Filesystem::normalizePath($dir . '/' . $name . ' ('.$i.')' . $ext); |
264 |
|
$i++; |
265 |
|
} |
266 |
|
|
267 |
|
return $path; |
268 |
|
} |