read()) { if ($entry != "." && $entry != "..") { if (is_dir($source.'/'.$entry)) { // recursion self::copyDir($source.'/'.$entry, $dest.'/'.$entry); } else { @copy($source.'/'.$entry, $dest.'/'.$entry); // echo $source.'/'.$entry." => ".$dest.'/'.$entry."
"; } } } return true; } }