ソースを参照

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) {