equal
deleted
inserted
replaced
52 case Nil => |
52 case Nil => |
53 sessions.relevant_chapters.sortBy(_.name).map(ch => make_entry(ch.name, is_dir = true)).toArray |
53 sessions.relevant_chapters.sortBy(_.name).map(ch => make_entry(ch.name, is_dir = true)).toArray |
54 case List(chapter) => |
54 case List(chapter) => |
55 sessions.relevant_chapters.find(_.name == chapter) match { |
55 sessions.relevant_chapters.find(_.name == chapter) match { |
56 case None => null |
56 case None => null |
57 case Some(chapter_info) => |
57 case Some(ch) => |
58 chapter_info.sessions.map { session => |
58 ch.sessions.map { session => |
59 val pos = sessions(session).pos |
59 val pos = sessions(session).pos |
60 val name = chapter_info.name + "/" + session |
60 val name = ch.name + "/" + session |
61 val path = |
61 val path = |
62 Position.File.unapply(pos) match { |
62 Position.File.unapply(pos) match { |
63 case Some(path) => File.platform_path(path) |
63 case Some(path) => File.platform_path(path) |
64 case None => null |
64 case None => null |
65 } |
65 } |