🍻 Corrige la copie des fichiers
This commit is contained in:
parent
162987131b
commit
1da668485f
2
cron.php
2
cron.php
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user