src/wcmf/lib/io/FileUtil.php
public static function copyRecDir($source, $dest) {
    if (!is_dir($dest)) {
      self::mkdirRec($dest);
    }
    $dir = opendir($source);
    while ($file = readdir($dir)) {
      if ($file == "." || $file == "..") {
        continue;
      }
      self::copyRec("$source/$file", "$dest/$file");
    }
    closedir($dir);
  }
public static function copyRecDir($source, $dest) {
    if (!is_dir($dest)) {
      self::mkdirRec($dest);
    }
    $dir = opendir($source);
    while ($file = readdir($dir)) {
      if ($file == "." || $file == "..") {
        continue;
      }
      self::copyRec("$source/$file", "$dest/$file");
    }
    closedir($dir);
  }
public static function copyRecDir ( $ source , $ dest ) { if ( ! is_dir ( $ dest ) ) { self :: mkdirRec ( $ dest ) ; } $ dir = opendir ( $ source ) ; while ( $ file = readdir ( $ dir ) ) { if ( $ file == "." || $ file == ".." ) { continue ; } self :: copyRec ( "$source/$file" , "$dest/$file" ) ; } closedir ( $ dir ) ; }
Recursive copy for directories.
@param $source The name of the source directory
@param $dest The name of the destination directory
Recursive copy for directories .