Was looking through the HelperPHP.php file for the answer to my question and came across code (line 142):
if($fileExists){
switch($fileExistsAction){
case "0": // "Overwrite"
Should a variable be passed in the rename function such as $case = "0"?
If this is the solution (or it is another) can you please provide a working example of the code for a rename function that will overwrite an existing file?