FolderItem.MoveTo
From Xojo Documentation
Method
FolderItem.MoveTo(destination as FolderItem)
New in 2019r2.1
Supported for all project types and targets.
New in 2019r2.1
Supported for all project types and targets.
Moves the FolderItem to the path specified by destination.
Notes
It does a move rather than a copy even when the source file is on another volume. After the move, the original file no longer exists. See the example of MoveFileTo in the Examples section for FolderItem. An IOException is raised if an error occurs.
Example
This example uses MoveTo. The source file will be deleted and moved into the destination folder.