Skip to content

os.copyfile

starkos edited this page Apr 10, 2021 · 3 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Copies a file from one location to another.

ok, err = 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.

Availability

Premake 5.0 or later.

Clone this wiki locally