recursive copy is now in OC_HELPER

This commit is contained in:
Robin Appelman 2011-05-29 17:00:34 +02:00
parent 2617e4b607
commit 85cae2cc32
1 changed files with 0 additions and 16 deletions

View File

@ -343,22 +343,6 @@ if(!function_exists('sys_get_temp_dir')) {
}
}
function recursive_copy($src,$dst) {
$dir = opendir($src);
@mkdir($dst);
while(false !== ( $file = readdir($dir)) ) {
if (( $file != '.' ) && ( $file != '..' )) {
if ( is_dir($src . '/' . $file) ) {
recursive_copy($src . '/' . $file,$dst . '/' . $file);
}
else {
copy($src . '/' . $file,$dst . '/' . $file);
}
}
}
closedir($dir);
}
global $FAKEDIRS;
$FAKEDIRS=array();