浏览代码

add rename to Update

alexlcdee 8 年之前
父节点
当前提交
b3e6a0bc54
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/components/Update.php

+ 5 - 0
src/components/Update.php

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