dump

fun dump(path: Path, fileSystem: FileSystem, version: Int = CURRENT_VERSION)

Write this device to path, creating parent directories.

fileSystem is explicit because FileSystem.SYSTEM is not part of okio's common API; pass it from a platform source set, or a fake in tests.


fun dump(path: String, fileSystem: FileSystem, version: Int = CURRENT_VERSION)

Write this device to path, creating parent directories.