readPath

open suspend override fun <T> readPath(path: Path, mapper: suspend (InputStream) -> T): Option<T>


suspend fun <T> readPath(path: Path, configure: suspend CopyArchiveFromContainerCmd.() -> Unit = {}, mapper: suspend (TarArchiveInputStream) -> T): Option<T>

Reads a path from the container environment into the host.

Return

An object constructed by reading from the path and converted by mapper. If path does not exist, returns arrow.core.None.

Parameters

configure

Configuration for the copy command of the container.

mapper

Function converting the TarArchiveInputStream of the path read into the target object type.