rename

rename(newname: String);

The rename method of the FileFolder class changes the name of the folder associated with the file folder object to the value specified in the newname parameter.

This method does not change the value of the FileNode class fileName property.

The code fragment in the following example shows the use of the rename method.

myfolder.rename("c:\Old");

Jade attempts to rename folders across devices. This attempt could fail for various reasons (often related to an operating system restriction), as follows.