searchZipFor

fun File.searchZipFor(path: String, handle: (ByteArray) -> Unit)(source)

If the target file is a zip file, search it for a single file that it may contain.

Parameters

path

The path to the file, e.g. markdown/blog/Post.md

handle

A handler which will be fed with the unzipped bytes if found.