Hello Everyone,
I have a script that transfers data from csv files to sugarcrm.
Everything works properly except that I want to move the files after being successfully processed from folder "Queue" to folder "Processed".
function move_file_to_proccessed($file) {
$src = "Queue/".$file;
$dest = "Processed/".$file;
$res = rename($src, $dest);
}This function should be enough to do the job, when I run it locally it does exactly that. But when the scheduler runs through sugar the files do not move from Queue to Processed.
Does sugar impose any sort of limitations on file related functions in PHP ?
Also this sugar instance is locally hosted and is licensed as Enterprise v9.0.1
Thank you in advance