copyTree -> copyDir

This commit is contained in:
Fred Tempez 2021-05-06 14:23:16 +02:00
parent 5dc33bd8a5
commit a5d2278d31

View File

@ -1052,7 +1052,7 @@ class common {
if (( $file != '.' ) && ( $file != '..' )) { if (( $file != '.' ) && ( $file != '..' )) {
if ( is_dir($src . '/' . $file) ){ if ( is_dir($src . '/' . $file) ){
// Appel récursif des sous-dossiers // Appel récursif des sous-dossiers
$success = $this->copyTree($src . '/' . $file, $dst . '/' . $file); $success = $this->copyDir($src . '/' . $file, $dst . '/' . $file);
} }
else { else {
$success = copy($src . '/' . $file, $dst . '/' . $file); $success = copy($src . '/' . $file, $dst . '/' . $file);