original_string: public static function copyr($src, $dst)
      {
          $dir = opendir($src);
          GeneratorHelper::createDir($dst);
          while (false !== ($file = readdir($dir))) {
              if (($file != '.') && ($file != '..')) {
                  if (is_dir($src . '/' . $file)) {
                      self::copyr($src . '/' . $file, $dst . '/' . $file);
                  } elseif (@copy($src . '/' . $file, $dst . '/' . $file) === false) {
                      throw new ConfigException("Can't copy " . $src . " to " . $dst);
                  }
              }
          }
          closedir($dir);
      }
code: public static function copyr($src, $dst)
      {
          $dir = opendir($src);
          GeneratorHelper::createDir($dst);
          while (false !== ($file = readdir($dir))) {
              if (($file != '.') && ($file != '..')) {
                  if (is_dir($src . '/' . $file)) {
                      self::copyr($src . '/' . $file, $dst . '/' . $file);
                  } elseif (@copy($src . '/' . $file, $dst . '/' . $file) === false) {
                      throw new ConfigException("Can't copy " . $src . " to " . $dst);
                  }
              }
          }
          closedir($dir);
      }
code_tokens: public static function copyr ( $ src , $ dst ) { $ dir = opendir ( $ src ) ; GeneratorHelper :: createDir ( $ dst ) ; while ( false !== ( $ file = readdir ( $ dir ) ) ) { if ( ( $ file != '.' ) && ( $ file != '..' ) ) { if ( is_dir ( $ src . '/' . $ file ) ) { self :: copyr ( $ src . '/' . $ file , $ dst . '/' . $ file ) ; } elseif ( @ copy ( $ src . '/' . $ file , $ dst . '/' . $ file ) === false ) { throw new ConfigException ( "Can't copy " . $ src . " to " . $ dst ) ; } } } closedir ( $ dir ) ; }
docstring: Method that copy a resource
  @param string $src
  @param string $dst
  @throws ConfigException
docstring_tokens: Method that copy a resource