Project

General

Profile

Feature #875

SCORM resources are not deleted from the filesystem

Added by Ivan Tcholakov over 9 years ago. Updated almost 9 years ago.

Status:
Feature implemented
Priority:
Low
Category:
-
Target version:
Start date:
29/03/2010
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Complexity:
Easy
SCRUM pts - complexity:
2

Description

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.

History

#1

Updated by Yannick Warnier over 9 years ago

  • Status changed from New to Assigned
  • Priority changed from Normal to Low
  • Target version set to 1.8.7.1
  • 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 1.8.7.1, 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)

#2

Updated by Yannick Warnier over 9 years ago

  • Target version changed from 1.8.7.1 to 1.8.8 stable
#3

Updated by Ivan Tcholakov over 9 years ago

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

#4

Updated by Ivan Tcholakov almost 9 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
#5

Updated by Ivan Tcholakov almost 9 years ago

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

13357:9f237d663c28 Task #875 - Updating changelog.html.
http://code.google.com/p/chamilo/source/detail?r=9f237d663c281d0d9e5599ceb1db52d22a9efb9f&repo=classic

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.
http://code.google.com/p/chamilo/source/detail?r=54907f09f782559de024a1698bf5591d20480eb7&repo=classic

13355:1badfae598d5 Task #875 - Cleaning white space in a file before a change.
http://code.google.com/p/chamilo/source/detail?r=1badfae598d533e878d2b3620568d5d089febe8a&repo=classic

#7

Updated by Yannick Warnier almost 9 years ago

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

#8

Updated by Ivan Tcholakov almost 9 years ago

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

#10

Updated by Fernando Paredes Garcia almost 9 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