From 849c0811f0a10c58311d9215adb11ba94158f511 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Sat, 24 Feb 2024 14:10:42 +0100 Subject: [PATCH] wait #6750 @0.5 --- src/Files/Files.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5