function _hacked_copy_directory in Hacked! 7.3
Copy directory with files.
1 call to _hacked_copy_directory()
- _hacked_restore_project in ./hacked.helpers.inc 
- Restore core, module or theme.
File
- ./hacked.helpers.inc, line 62 
- Contain list of helpers for the module.
Code
function _hacked_copy_directory($src, $dst) {
  // TODO needs checks if copy fails
  $dir = opendir($src);
  @mkdir($dst);
  while ($file = readdir($dir)) {
    if ($file != '.' && $file != '..') {
      if (is_dir($src . '/' . $file)) {
        _hacked_copy_directory($src . '/' . $file, $dst . '/' . $file);
      }
      else {
        copy($src . '/' . $file, $dst . '/' . $file);
      }
    }
  }
  closedir($dir);
}