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