lib/private/Files/Storage/Common.php 1 location
|
@@ 286-288 (lines=3) @@
|
| 283 |
|
if (is_resource($dh)) { |
| 284 |
|
while (($item = readdir($dh)) !== false) { |
| 285 |
|
if (\OC\Files\Filesystem::isIgnoredDir($item)) continue; |
| 286 |
|
if (strstr(strtolower($item), strtolower($query)) !== false) { |
| 287 |
|
$files[] = $dir . '/' . $item; |
| 288 |
|
} |
| 289 |
|
if ($this->is_dir($dir . '/' . $item)) { |
| 290 |
|
$files = array_merge($files, $this->searchInDir($query, $dir . '/' . $item)); |
| 291 |
|
} |
lib/private/Files/Storage/Local.php 1 location
|
@@ 321-323 (lines=3) @@
|
| 318 |
|
continue; |
| 319 |
|
$physicalItem = $physicalDir . '/' . $item; |
| 320 |
|
|
| 321 |
|
if (strstr(strtolower($item), strtolower($query)) !== false) { |
| 322 |
|
$files[] = $dir . '/' . $item; |
| 323 |
|
} |
| 324 |
|
if (is_dir($physicalItem)) { |
| 325 |
|
$files = array_merge($files, $this->searchInDir($query, $dir . '/' . $item)); |
| 326 |
|
} |