소스 검색

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