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!) and the error occurs in both.