]> source.dussan.org Git - nextcloud-server.git/commitdiff
use Filesystem::isIgnoredDir
authorFrank Karlitschek <frank@owncloud.org>
Fri, 4 Oct 2013 07:28:46 +0000 (09:28 +0200)
committerFrank Karlitschek <frank@owncloud.org>
Fri, 4 Oct 2013 07:28:46 +0000 (09:28 +0200)
lib/private/util.php

index d0b0fbfc8075d926612086d23cd96390289f7e83..cb33e3597a2849137c22ae8423f0100bf7cb3b2c 100755 (executable)
@@ -113,7 +113,7 @@ class OC_Util {
                $dir = opendir($source);
                @mkdir($target);
                while(false !== ( $file = readdir($dir)) ) {
-                       if (( $file != '.' ) && ( $file != '..' )) {
+                       if ( !\OC\Files\Filesystem::isIgnoredDir($file) ) {
                                if ( is_dir($source . '/' . $file) ) {
                                        OC_Util::copyr($source . '/' . $file , $target . '/' . $file);
                                } else {