PathResource

fun PathResource(path: Path, name: String = path.toString(), doClose: () -> Unit = {})

Parameters

doClose

当执行 close 时可以选择提供执行操作。