From: Vincent Vanwaelscappel Date: Sat, 24 Feb 2024 13:10:42 +0000 (+0100) Subject: wait #6750 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=849c0811f0a10c58311d9215adb11ba94158f511;p=cubist_util.git wait #6750 @0.5 --- diff --git a/src/Files/Files.php b/src/Files/Files.php index 77da144..6f724cd 100644 --- a/src/Files/Files.php +++ b/src/Files/Files.php @@ -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