Moo_FileCopy ( sSource; sDestination; bOverwrite; bProgress );
This functions lets you make a copy of a local file.Parameters
| Name | Type | Required | Default | Description |
| sSource | String | Yes | The input file to be copied. | |
| sDestination | String | Yes | Where should the file be copied to. | |
| bOverwrite | Boolean | No | False | Should existing files be overwritten. |
| bProgress | Boolean | No | False | Show file copy progress. |
Return Value
Returns either a boolean value of true if the file copy succeeded, or an error code.
Can optionally be used with the Moo_ProgressOptions function.
Errors
| Error Code | Description |
| Moo_FileCopy|Err_1 | Invalid number of arguments. |
| Moo_FileCopy|Err_2 | Invalid source file input. |
| Moo_FileCopy|Err_3 | Source file does not exist. |
| Moo_FileCopy|Err_4 | Invalid destination file input. |
| Moo_FileCopy|Err_5 | Destination file already exists. |
| Moo_FileCopy|Err_6 | Error copying file. |
Related Functions
