veotani/edx-structure-json

Make library work with archive

Closed this issue · 1 comments

As long as edX "Export" feature always gives course structure in archive in the same format it'll be good for that library to decompress that archive into folder, parse course structure and then delete decompressed archive.
There are few tasks:

  1. ParseCourse() method should take CourseStructurePath string as an argument.
  2. Add decompressCourseStructure() to course/ folder method.
  3. Add cleanCourseStructure() method. It deletes course/ folder.
  4. Call methods of steps 2 and 3 within ParseCourse() method.