Skip to content
Snippets Groups Projects
Commit 70b4f859 authored by Christopher Schäpers's avatar Christopher Schäpers
Browse files

Use isIgnoredDir()

parent 2f11f56d
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment