diff options
| author | polo <ordipolo@gmx.fr> | 2026-10-23 00:47:32 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2026-10-23 00:47:32 +0200 |
| commit | f27cca08ff786ceff1870147f6d6bad14d71117f (patch) | |
| tree | d36597a72025313d6faf4ed228755fa267ebe2f6 /bin/copy_directory.php | |
| parent | c7309f900ef05bd5cb313110ec159b761af394ec (diff) | |
| download | cms-f27cca08ff786ceff1870147f6d6bad14d71117f.tar.gz cms-f27cca08ff786ceff1870147f6d6bad14d71117f.tar.bz2 cms-f27cca08ff786ceff1870147f6d6bad14d71117f.zip | |
dossiers avec majuscule, namespace pour toutes les classes, autoload psr-4, UserDataService::createZip déplacé dans Backup
Diffstat (limited to 'bin/copy_directory.php')
| -rw-r--r-- | bin/copy_directory.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/copy_directory.php b/bin/copy_directory.php index 20e4821..0e0afe1 100644 --- a/bin/copy_directory.php +++ b/bin/copy_directory.php | |||
| @@ -15,9 +15,9 @@ function copyDirectory(string $source, string $destination): void | |||
| 15 | mkdir($destination, 0755, true); | 15 | mkdir($destination, 0755, true); |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | $iterator = new RecursiveIteratorIterator( | 18 | $iterator = new \RecursiveIteratorIterator( |
| 19 | new RecursiveDirectoryIterator($source, RecursiveDirectoryIterator::SKIP_DOTS), | 19 | new \RecursiveDirectoryIterator($source, \RecursiveDirectoryIterator::SKIP_DOTS), |
| 20 | RecursiveIteratorIterator::SELF_FIRST | 20 | \RecursiveIteratorIterator::SELF_FIRST |
| 21 | ); | 21 | ); |
| 22 | 22 | ||
| 23 | foreach($iterator as $item){ | 23 | foreach($iterator as $item){ |
