Skip to content
Snippets Groups Projects
Commit e49ee47e authored by Frank Karlitschek's avatar Frank Karlitschek
Browse files

use Filesystem::isIgnoredDir

parent f0a98cc9
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
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