|
|
|
|
@ -260,7 +260,7 @@ abstract class Common implements Storage { |
|
|
|
|
$dh = $this->opendir($path); |
|
|
|
|
if (is_resource($dh)) { |
|
|
|
|
while (($file = readdir($dh)) !== false) { |
|
|
|
|
if ($file !== '.' and $file !== '..') { |
|
|
|
|
if (!\OC\Files\Filesystem::isIgnoredDir($file)) { |
|
|
|
|
if ($this->is_dir($path . '/' . $file)) { |
|
|
|
|
mkdir($target . '/' . $file); |
|
|
|
|
$this->addLocalFolder($path . '/' . $file, $target . '/' . $file); |
|
|
|
|
@ -283,7 +283,7 @@ abstract class Common implements Storage { |
|
|
|
|
$dh = $this->opendir($dir); |
|
|
|
|
if (is_resource($dh)) { |
|
|
|
|
while (($item = readdir($dh)) !== false) { |
|
|
|
|
if ($item == '.' || $item == '..') continue; |
|
|
|
|
if (\OC\Files\Filesystem::isIgnoredDir($item)) continue; |
|
|
|
|
if (strstr(strtolower($item), strtolower($query)) !== false) { |
|
|
|
|
$files[] = $dir . '/' . $item; |
|
|
|
|
} |
|
|
|
|
|