rename
Renames a file or directory
&reftitle.description;
boolrename
stringoldname
stringnewname
resourcecontext
Attempts to rename oldname to
newname.
&reftitle.parameters;
oldname
The old name. The wrapper used in oldname
must match the wrapper used in
newname.
newname
The new name.
context
¬e.context-support;
&reftitle.returnvalues;
&return.success;
&reftitle.changelog;
&Version;
&Description;
5.0.0
rename can now also be used with
some URL wrappers. Refer to for a listing of which wrappers
support rename.
4.3.3
rename is now able to rename files across
partitions on *nix based systems.
&reftitle.examples;
Example with rename
]]>
&reftitle.seealso;
copy
unlink
move_uploaded_file