in src/main/scala/org/intellij/scala/bundle/Source.scala [29:40]
override def next(): Entry = {
def format(path: String) = path.replace('\\', '/')
val file = files.next().toFile
Entry(
name = format(file.getPath).stripPrefix(format(root.getPath) + "/"),
size = file.length(),
lastModified = file.lastModified(),
mode = None,
link = None,
input = if (file.isDirectory) None else Some(new FileInputStream(file))
)
}