WHFSFile::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 destfolder

Destination folder

STRING newname

New name of the file, leave empty to keep the original name

Return value

OBJECT

Object of newly copy (or DEFAULT OBJECT on failure)