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)Parameters
OBJECT destfolderDestination folder
STRING newnameNew name of the file, leave empty to keep the original name
Return value
OBJECTObject of newly copy (or DEFAULT OBJECT on failure)