From df3612ed7e6691530503f79483d2fdbc032d01b8 Mon Sep 17 00:00:00 2001 From: polo-pc-greta Date: Thu, 27 Mar 2025 10:13:03 +0100 Subject: mise en ligne github --- bin/copy_directory.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bin/copy_directory.php (limited to 'bin/copy_directory.php') diff --git a/bin/copy_directory.php b/bin/copy_directory.php new file mode 100644 index 0000000..2c001c0 --- /dev/null +++ b/bin/copy_directory.php @@ -0,0 +1,25 @@ +isDir()) { + mkdir($destination . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); + } else { + copy($item, $destination . DIRECTORY_SEPARATOR . $iterator->getSubPathName()); + } + } +} + +copyDirectory($argv[1], $argv[2]); -- cgit v1.2.3