ES3.CopyFile

public static void CopyFile(string oldFilePath, string newFilePath, ES3Settings oldSettings, ES3Settings newSettings)

Description

Copies a file from one location to another, using the ES3Settings provided to override any default settings.

It will throw a FileNotFoundException if the file you are copying does not exist, and throw an IOException if the new file already exists. You can use ES3.FileExists to check beforehand whether these files exist.

Parameters

oldFilePath [Optional] The relative or absolute path of the file we want to copy.

newFilePath

[Optional]  The relative or absolute path of the file we want to create.

oldSettings

[Optional]  The settings we want to use when copying the old file.

newSettings

[Optional]  The settings we want to use when creating the new file.

Examples

C#

JS