🍻 Corrige la copie des fichiers

This commit is contained in:
Shikiryu 2017-11-08 23:17:18 +01:00
parent 162987131b
commit 1da668485f

View File

@ -22,7 +22,7 @@ function copy_folder($from, $to)
foreach (new RecursiveIteratorIterator($directory) as $filename => $current) { foreach (new RecursiveIteratorIterator($directory) as $filename => $current) {
$source = $current->getPathName(); $source = $current->getPathName();
$destination = $to . $current->getFileName(); $destination = $to . '/' . $current->getFileName();
copy($source, $destination); copy($source, $destination);
} }