]> _ Git - cubist_util.git/commitdiff
wait #6750 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Sat, 24 Feb 2024 13:10:42 +0000 (14:10 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Sat, 24 Feb 2024 13:10:42 +0000 (14:10 +0100)
src/Files/Files.php

index 77da144be8b9c89483ea4f254583d5cf00f40676..6f724cd1e9aed73366ebee6dde7260271a8c723c 100644 (file)
@@ -461,4 +461,12 @@ class Files
         $rsync = new CommandLine\Rsync($from, $to, $mirror);
         $rsync->execute();
     }
+
+    public static function unlink($path)
+    {
+        if (file_exists($path) && !is_dir($path)) {
+            return unlink($path);
+        }
+        return false;
+    }
 }
\ No newline at end of file