| [Overview][Constants][Types][Procedures and functions][Variables][Index] |
Renames a file to the specified value
Source position: lazfileutils.pas line 117
function RenameFileUTF8( |
const OldName: string; |
const NewName: string |
):Boolean; |
OldName |
|
Existing name for the file |
NewName |
|
New name for the file |
True if the file is successfully renamed to the new value
RenameFileUTF8 is a Boolean function used to rename a file to the specified new value.
For the Windows enviroment, MoveFileW is called to rename the file using the values specified in OldName and NewName. For UNIX-like enviroments, RenameFIle in SysUtils is called to rename the file to the specified new value. InvalidateFileStateCache is also called.
The return value is True if the file is renamed successfully.
| lazarus-ccr.sourceforge.net |