'rename' warning when trying to add a SCORM on 1.6

'rename' warning when trying to add a SCORM on 1.6

ni ~ Longbarrow ~ -
Number of replies: 2

Hello everyone,

We're trying to add a SCORM to a course in 1.6 and keep getting the following error message:

Warning: rename(/moodlehome/moodledata/91/moddata/scorm/randstring,/moodlehome/moodledata/91/moddata/scorm/): Directory not empty in /moodlehome/moodle/mod/scorm/lib.php on line 52

The php code (with line numbers) is:

Is there something we're doing wrong? Does anyone know how we can put it right?

Thanks
Longbarrow

49   if (basename($scorm->reference) != 'imsmanifest.xml') {
50   // Rename temp scorm dir to scorm id
51   $scorm->dir = $CFG->dataroot.'/'.$scorm->course.'/moddata/scorm';
52   rename($scorm->dir.$scorm->datadir,$scorm->dir.'/'.$id);
49   }

and I've tested it in IE an Firefox (I'm wise to that now!smile) and the error occurs in both.

Average of ratings: -
In reply to ~ Longbarrow ~

Re: 'rename' warning when trying to add a SCORM on 1.6

ni Arnault Branche -
I've tried to remove all the files that I uploaded by a SCORM Activity, and I managed to upload a SCORM without the rename error.