os.copyfile - premake/premake-4.x GitHub Wiki

Home > [Scripting Reference](Scripting Reference) > os.copyfile


os.copyfile

The os.copyfile function copies a file from one location to another.

#!lua
os.copyfile("source", "destination")

Parameters

source is the file system path to the file to be copied. destination is the path to the copy location.

Return Value

True if successful, otherwise nil and an error message.