Skip to content
Snippets Groups Projects
Commit 85cae2cc authored by Robin Appelman's avatar Robin Appelman
Browse files

recursive copy is now in OC_HELPER

parent 2617e4b6
No related branches found
No related tags found
No related merge requests found
...@@ -343,22 +343,6 @@ if(!function_exists('sys_get_temp_dir')) { ...@@ -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; global $FAKEDIRS;
$FAKEDIRS=array(); $FAKEDIRS=array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment