copyfile

copyfile

function copyfile( src, dst ) --> res, err

Description

This function copy the file in the source path in the destination path.

Parameters

srcPath

Path to the source file.

dstPath

Path where to copy the file.

Return Values

res

true if the copy successes of nil if an error occurse.

err

A message if an error occurse, otherwise nil

Code

include:copyfile.lua[]

Examples

include:copyfile.ex1.lua[]

See also