Use isIgnoredDir()

This commit is contained in:
kondou 2013-07-10 02:36:43 +02:00
parent 2f11f56d32
commit 70b4f85911
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ if ($dir) {
$dirContent = $view->opendir($dir);
$i = 0;
while($entryName = readdir($dirContent)) {
if ( $entryName !== '.' && $entryName !== '..' ) {
if (!\OC\Files\Filesystem::isIgnoredDir($entryName)) {
$pos = strpos($dir.'/', '/', 1);
$tmp = substr($dir, 0, $pos);
$pos = strrpos($tmp, '.d');