WHFSFolder::CopyTo (open)
Create a copy of this file/folder in the destination folder, with optional rename.
Syntax
LOADLIB "mod::system/lib/internal/whfs/objects.whlib";
OBJECT FUNCTION CopyTo(OBJECT destfolder, STRING newname, RECORD options)Parameters
OBJECT destfolderDestination folder
STRING newnameNew name of the file, leave empty to keep the original name
RECORD optionsReturn value
OBJECTObject of newly copy (or DEFAULT OBJECT on failure)