load

abstract fun load(key: K, target: Path)(source)

Fills target with the data denoted by key.

Parameters

key

the key identifying the data to load.

target

the directory to fill with data; it exists, is empty, and is writable. The loader must write at least one regular file directly in it, or the entry is rejected.

Throws

if the data cannot be loaded.