Skip to content
Snippets Groups Projects
Commit 1f0550de authored by srosse's avatar srosse
Browse files

OO-2218: export media directory too

parent 61a18e62
No related branches found
No related tags found
No related merge requests found
......@@ -318,8 +318,9 @@ public class PersistingCourseImpl implements ICourse, OLATResourceable, Serializ
FileUtils.copyFileToDir(new File(fCourseBase, RUNSTRUCTURE_XML), exportDirectory, "course export runstructure");
}
// fxdiff: export layout-folder
FileUtils.copyDirToDir(new OlatRootFolderImpl(courseRootContainer.getRelPath() + File.separator + "layout", null).getBasefile(), exportDirectory, "course export layout folder");
// export layout and media folder
FileUtils.copyDirToDir(new File(fCourseBase, "layout"), exportDirectory, "course export layout folder");
FileUtils.copyDirToDir(new File(fCourseBase, "media"), exportDirectory, "course export media folder");
// export course folder
FileUtils.copyDirToDir(getIsolatedCourseBaseFolder(), exportDirectory, "course export folder");
// export any node data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment