fromMap

@JvmName(name = "fromMapStringTestFile")
fun fromMap(data: Map<String, TestFile>, filePathSeparator: String = "/"): Filesystem

Construct a fake filesystem from a mapping of paths to contents


fun fromMap(data: Map<String, ByteArray>, filePathSeparator: String = "/"): Filesystem

Deprecated

Use fromMap(Map<String, TestFile>) instead

Replace with

fromMap(data.mapValues { (_, v) -> TestFile(v) }, filePathSeparator)

Construct a fake filesystem from a mapping of paths to contents