]> _ Git - fluidbook_distantstorage.git/commitdiff
wip #5725 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 Feb 2023 12:16:37 +0000 (13:16 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 13 Feb 2023 12:16:37 +0000 (13:16 +0100)
app/src/Tools.php

index 4b0a15d62bd905e98da8108cc73fa1f21870c106..9e76bae520cf58109f3b1440ed9bffc63de5487f 100644 (file)
@@ -11,12 +11,18 @@ class Tools {
                Zip::archive($a['source'], $a['dest'], $a['compression']);
        }
 
+       /**
+        * @throws \Exception
+        */
        public static function copy($a) {
                foreach ($a['files'] as $from => $to) {
                        self::_cp($from, $to);
                }
        }
 
+       /**
+        * @throws \Exception
+        */
        public static function lazyCopy($a) {
                foreach ($a['files'] as $from => $to) {
                        if (file_exists($from)) {
@@ -25,6 +31,9 @@ class Tools {
                }
        }
 
+       /**
+        * @throws \Exception
+        */
        protected static function _cp($from, $to) {
                Files::mkdir(dirname($to));
                Files::copyFile($from, $to);