Feature #875

SCORM resources are not deleted from the filesystem

Added by Ivan Tcholakov over 11 years ago. Updated over 10 years ago.

Feature implemented
Ivan Tcholakov
Target version:
Start date:
Due date:
% Done:


Estimated time:
1.00 h
Spent time:
SCRUM pts - complexity:


When a course is emptied (recycled), the SCORM resources which are the files inside the directory .../chamilo/courses/TESTCOURSE/scorm/ are not deleted. I suppose there in no code for removing these files.



Updated by Yannick Warnier over 11 years ago

  • Status changed from New to Assigned
  • Priority changed from Normal to Low
  • Target version set to
  • Estimated time set to 1.00 h
  • SCRUM pts - complexity changed from ? to 2

I remember the question was asked a long time ago. What slowed down (and eventually killed) the writing of such a code is that sometimes SCORM are very heavy resources and we don't want to be mistakenly deleting them and adding them again (given an access to the server script, there is a bit of code in main/upload/form.scorm.php that can actually use a package on the server as a source.

There's no real hurry implementing it for me, so I'm putting it as a bug report for, but feel free to implement. Technically, it's probably about two lines of code somewhere in the learnpath.class.php class (or maybe the scorm.class.php in this case)


Updated by Yannick Warnier about 11 years ago

  • Target version changed from to 1.8.8 stable

Updated by Ivan Tcholakov almost 11 years ago

The file scorm.lib.php maybe contains suitable functions for this task completion. To be checked.


Updated by Ivan Tcholakov over 10 years ago

  • Assignee set to Ivan Tcholakov
  • Target version changed from 1.8.8 stable to 1.8.8 alpha
  • Complexity changed from Normal to Easy

Updated by Ivan Tcholakov over 10 years ago

  • Status changed from Assigned to Needs more info
  • % Done changed from 0 to 80

13357:9f237d663c28 Task #875 - Updating changelog.html.

13356:54907f09f782 Task #875 - CourseRecycler class, deletion of a SCORM learning path: A fragment of code has been added for removing the folder that contains the unzipped SCORM-package.

13355:1badfae598d5 Task #875 - Cleaning white space in a file before a change.


Updated by Ivan Tcholakov over 10 years ago


Updated by Yannick Warnier over 10 years ago

Do you need help with this one or shall I leave it to you?


Updated by Ivan Tcholakov over 10 years ago

This task has been finished. I need only a test by somebody else and a confirmation.


Updated by Ivan Tcholakov over 10 years ago


Updated by Fernando Paredes Garcia over 10 years ago

  • Tracker changed from Bug to Feature
  • Status changed from Needs more info to Feature implemented
  • % Done changed from 80 to 100

Tested in Ubuntu Linux and WinXP.

Also available in: Atom PDF