From: Vincent Vanwaelscappel Date: Mon, 13 Feb 2023 10:02:15 +0000 (+0100) Subject: wip #5725 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c4e122d99b6ae6dd694df864967563d3b74e8d42;p=fluidbook_distantstorage.git wip #5725 @0.25 --- diff --git a/app/src/Tools.php b/app/src/Tools.php new file mode 100644 index 0000000..3b8410d --- /dev/null +++ b/app/src/Tools.php @@ -0,0 +1,23 @@ + 0]); + Zip::archive($a['source'], $a['dest'], $a['compression']); + } + + public static function copy($a) { + foreach ($a['files'] as $from => $to) { + Files::copy($from, $to); + } + } + + protected static function _args($args, $defaults = []) { + return array_merge($defaults, $args); + } +} \ No newline at end of file diff --git a/app/tools.php b/app/tools.php new file mode 100644 index 0000000..0224aa5 --- /dev/null +++ b/app/tools.php @@ -0,0 +1,10 @@ +