lib/private/Files/Storage/Local.php 1 location
|
@@ 324-326 (lines=3) @@
|
| 321 |
|
continue; |
| 322 |
|
$physicalItem = $physicalDir . '/' . $item; |
| 323 |
|
|
| 324 |
|
if (strstr(strtolower($item), strtolower($query)) !== false) { |
| 325 |
|
$files[] = $dir . '/' . $item; |
| 326 |
|
} |
| 327 |
|
if (is_dir($physicalItem)) { |
| 328 |
|
$files = array_merge($files, $this->searchInDir($query, $dir . '/' . $item)); |
| 329 |
|
} |
lib/private/Files/Storage/Common.php 1 location
|
@@ 293-295 (lines=3) @@
|
| 290 |
|
if (is_resource($dh)) { |
| 291 |
|
while (($item = readdir($dh)) !== false) { |
| 292 |
|
if (\OC\Files\Filesystem::isIgnoredDir($item)) continue; |
| 293 |
|
if (strstr(strtolower($item), strtolower($query)) !== false) { |
| 294 |
|
$files[] = $dir . '/' . $item; |
| 295 |
|
} |
| 296 |
|
if ($this->is_dir($dir . '/' . $item)) { |
| 297 |
|
$files = array_merge($files, $this->searchInDir($query, $dir . '/' . $item)); |
| 298 |
|
} |