Product SiteDocumentation Site

5.4.25.30. renameTo


>>-renameTo(dest)----------------------------------------------><

Changes the name of the file/directory denoted by the absolute path of the target object. The new name is dest.
Returns .true ("1") if the renaming was successful, otherwise returns .false ("0").
On Windows, this method calls MoveFile to perform the action.
On Unix, this method calls rename to perform the action.