setExtra

fun <T : Any> setExtra(path: Path, type: KClass<out T>, value: T?)

Sets the metadata of type type on path to value. If value is null this clears that metadata.

Extras are not copied by copy but they are moved with atomicMove.

Throws

IOException

if path does not exist.