Fix the cp -R

This commit is contained in:
Mark Crane
2014-05-16 06:28:27 +00:00
parent b9643b60ee
commit d899cc23cd

View File

@@ -38,7 +38,7 @@ include "root.php";
//$option '-n' --no-clobber
function recursive_copy($src, $dst, $option = '') {
if (file_exists('/bin/cp')) {
exec ('cp -R $option '.$src_dir.' '.$dst_dir);
exec ('cp -R '.$option.' '.$src.'/* '.$dst);
}
else {
$dir = opendir($src);