Wouldn't it be more logical to call this function with the exact path to be saved to? That way you don't have to edit the parameter in the function anymore.