rename 重命名一个文件或目录 &reftitle.description; boolrename stringfrom stringto resourcenullcontext&null; 尝试把 from 重命名为 to,必要时会在不同目录间移动。 如果重命名文件时 to 已经存在,将会覆盖掉它。 如果重命名文件夹时 to 已经存在,本函数将导致一个警告。 &reftitle.parameters; from 原名 用于 from 中的封装协议必须和用于 to 中的相匹配。 to 新的名字。 在 Windows 上,如果 to 已经存在,它必须是可写的。 否则 rename 将失败,并导致 E_WARNING context ¬e.context-support; &reftitle.returnvalues; &return.success; &reftitle.examples; <function>rename</function> 例子 ]]> &reftitle.seealso; copy unlink move_uploaded_file