Issue Details (XML | Word | Printable)

Key: MDL-18574
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: moodle.com
Reporter: Michael J Litzkow
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Need way to extract a single file from a ZIP archive

Created: 17/Mar/09 02:22 AM   Updated: 18/Mar/09 05:43 AM
Return to search
Component/s: Backup, Files API
Affects Version/s: 2.0
Fix Version/s: None

Environment: N/A

Participants: Dan Marsden, Michael J Litzkow and moodle.com
Security Level: None
Affected Branches: MOODLE_20_STABLE


 Description  « Hide
I'm working on some extensions to the Backup and Import facilities which will support long-term archiving of courses. Need to support very large archive files into the multiple GB range as these are not uncommon in my installation. Efficient extraction of meta-data from archived courses is a requirement. Since the data is in a single file "moodle.xml", I need to extract that single file efficiently. While this is a single use-case, I think that support for specific file extraction would be generally useful.

I can send code which supports extraction of a single file from a ZIP archive, if there is interest. I am a relative newbie to Moodle development, so am not sure if this is the best way to offer code. Will follow suggestions.

Also, I see the the Backup and Import facilities are still using the legacy ZIP handling code. I would be interested in going through this code and converting it to use Packer.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
No changes have yet been made on this issue.