]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use isIgnoredDir()
authorkondou <kondou@ts.unde.re>
Wed, 10 Jul 2013 00:36:43 +0000 (02:36 +0200)
committerkondou <kondou@ts.unde.re>
Wed, 10 Jul 2013 00:36:43 +0000 (02:36 +0200)
apps/files_trashbin/index.php

index 7cb2832c9fe7b9e9c02fb737cddb71f9ede146b0..2dbaefe7a78ebdca37331f3619f0a7db4e3b2bb1 100644 (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');