فهرست منبع

add rename to Update

alexlcdee 8 سال پیش
والد
کامیت
5d4342f1ee
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      src/components/Update.php

+ 5 - 0
src/components/Update.php

@@ -40,6 +40,11 @@ class Update extends \CComponent
         @rename($old, $new);
     }
 
+    public function remove($target)
+    {
+        @unlink($target);
+    }
+
     public function cleanDir($path, $includeDir = false, $initPath = false)
     {
         if (!$initPath) {