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.
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.
-
Folder name on the output device is invalid
-
Permission to create a folder on the output device is denied
-
Space on the output device is insufficient