瀏覽代碼

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);
     }
 
+    public function rename($old, $new)
+    {
+        @rename($old, $new);
+    }
+
     public function cleanDir($path, $includeDir = false, $initPath = false)
     {
         if (!$initPath) {