Moo_FileMove  -  Move a file.

Moo_FileMove ( sSource; sDestination; bOverwrite );

This functions lets you move a local file.

Parameters

NameTypeRequiredDefaultDescription
sSourceStringYes The input file to be moved.
sDestinationStringYes Where should the file be moved to.
bOverwriteBooleanNoFalseShould existing files be overwritten.

Return Value

Returns either a boolean value of true if the file move succeeded, or an error code.

Errors

Error CodeDescription
Moo_FileMove|Err_1Invalid number of arguments.
Moo_FileMove|Err_2Invalid source file input.
Moo_FileMove|Err_3Source file does not exist.
Moo_FileMove|Err_4Invalid destination file input.
Moo_FileMove|Err_5Destination file already exists.
Moo_FileMove|Err_6Error moving file.

Related Functions