os.Path.copy

Creates a new file by copying an existing file.

Syntax

os.Path.copy(
   fromPath STRING,
   toPath STRING )
  RETURNS INTEGER
  1. fromPath is the name of the file to copy.
  2. toPath is the destination name of the copied file.

Usage

The function returns TRUE if the file has been successfully copied, FALSE otherwise.